Updated on 2026-08-14

This commit is contained in:
Tangem 2023-02-14 14:27:40 +03:00
parent b848ba134f
commit d64ccc5769
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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,