Updated on 2026-08-14
This commit is contained in:
parent
b848ba134f
commit
d64ccc5769
2 changed files with 7 additions and 3 deletions
|
|
@ -75,8 +75,11 @@ data class WalletState(
|
|||
get() = walletsStores.mapNotNull { it.walletManager }
|
||||
|
||||
private val primaryWalletStore: WalletStore?
|
||||
get() = if (isMultiwalletAllowed || walletsStores.isEmpty() || walletsStores.size > 1) null
|
||||
else walletsStores[0]
|
||||
get() = if (isMultiwalletAllowed || walletsStores.isEmpty() || walletsStores.size > 1) {
|
||||
null
|
||||
} else {
|
||||
walletsStores[0]
|
||||
}
|
||||
|
||||
private val primaryWalletManager: WalletManager?
|
||||
get() = primaryWalletStore?.walletManager
|
||||
|
|
|
|||
|
|
@ -131,7 +131,8 @@ class OnWalletLoadedReducer {
|
|||
}
|
||||
val walletData = walletState.primaryWalletData?.copy(
|
||||
currencyData = BalanceWidgetData(
|
||||
balanceStatus, wallet.blockchain.fullName,
|
||||
status = balanceStatus,
|
||||
currency = wallet.blockchain.fullName,
|
||||
currencySymbol = wallet.blockchain.currency,
|
||||
blockchainAmount = amount,
|
||||
amount = amount,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue