Updated on 2026-08-14

This commit is contained in:
Tangem 2025-11-05 03:49:15 +07:00
parent 7fee3c6d3b
commit 70dd41a680
19 changed files with 594 additions and 184 deletions

View file

@ -20,7 +20,7 @@ internal class ExpandedAccountsHolder @Inject constructor(
fun expandedAccounts(userWallet: UserWallet): Flow<Set<AccountId>> = channelFlow {
walletAccounts(userWallet)
.onEach { accountList ->
val isSingleAccount = accountList.totalAccounts == 1
val isSingleAccount = accountList.accounts.size == 1
val defaultExpanded = when {
isSingleAccount -> setOf(accountList.mainAccount.accountId)
else -> setOf()