Updated on 2026-08-14
This commit is contained in:
parent
1b6fded61c
commit
25504da416
2 changed files with 7 additions and 3 deletions
|
|
@ -81,8 +81,10 @@ internal class WalletTokensListUMConverter(
|
|||
.asSequence()
|
||||
.flatMap { accountStatus ->
|
||||
if (isAccountsModeEnabled) {
|
||||
val isCollapsable = accountStatus.tokenList.flattenCurrencies().isNotEmpty()
|
||||
val isExpanded = expandedAccounts.contains(accountStatus.account.accountId)
|
||||
val currencies = accountStatus.tokenList.flattenCurrencies()
|
||||
val isCollapsable = currencies.isNotEmpty()
|
||||
val isExpanded =
|
||||
currencies.isEmpty() || expandedAccounts.contains(accountStatus.account.accountId)
|
||||
sequenceOf(
|
||||
TokensListItemUM2.Portfolio(
|
||||
tokenRowUM = accountRowConverter.convert(accountStatus),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue