Updated on 2026-08-14
This commit is contained in:
parent
a8d9a1bf02
commit
8dd2e578b4
3 changed files with 31 additions and 31 deletions
|
|
@ -33,7 +33,7 @@ private fun internalReduce(action: Action, state: AppState): TokensState {
|
|||
}
|
||||
|
||||
private fun List<WalletData>.toCardCurrencies(): CardCurrencies {
|
||||
val tokens = mapNotNull { (it.currency as? Currency.Token)?.token }.toSet()
|
||||
val blockchains = mapNotNull { (it.currency as? Currency.Blockchain)?.blockchain }.toSet()
|
||||
val tokens = mapNotNull { (it.currency as? Currency.Token)?.token }.distinct()
|
||||
val blockchains = mapNotNull { (it.currency as? Currency.Blockchain)?.blockchain }.distinct()
|
||||
return CardCurrencies(tokens = tokens, blockchains = blockchains)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue