Updated on 2026-08-14
This commit is contained in:
parent
7fee3c6d3b
commit
70dd41a680
19 changed files with 594 additions and 184 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue