Updated on 2026-08-14

This commit is contained in:
Tangem 2023-10-19 16:50:30 +03:00
parent 51cf112fff
commit bb73fe72fd
2 changed files with 11 additions and 2 deletions

View file

@ -162,9 +162,14 @@ internal class DefaultNetworksRepository(
responseCurrenciesFactory.createCurrencies(response, userWallet.scanResponse).asSequence()
} else {
val currency = cardCurrenciesFactory.createPrimaryCurrencyForSingleCurrencyCard(userWallet.scanResponse)
if (userWallet.isSingleWalletWithTokens()) {
cardCurrenciesFactory.createCurrenciesForSingleCurrencyCardWithToken(userWallet.scanResponse)
.asSequence()
} else {
val currency = cardCurrenciesFactory.createPrimaryCurrencyForSingleCurrencyCard(userWallet.scanResponse)
sequenceOf(currency)
sequenceOf(currency)
}
}
return currencies.filter { it.network == network }