Updated on 2026-08-14

This commit is contained in:
Tangem 2022-10-24 13:51:50 +04:00
parent 3590da6e28
commit ec8612af7f

View file

@ -68,9 +68,11 @@ class UserTokensRepository(
}
suspend fun loadBlockchainsToDerive(card: Card): List<BlockchainNetwork> {
return storageService.getUserTokens(card.getUserId())?.toBlockchainNetworks() ?: storageService.getUserTokens(
card,
).toBlockchainNetworks()
if (DemoHelper.isDemoCardId(card.cardId)) {
return loadDemoCurrencies().toBlockchainNetworks()
}
return storageService.getUserTokens(card.getUserId())?.toBlockchainNetworks()
?: storageService.getUserTokens(card).toBlockchainNetworks()
}
private fun loadDemoCurrencies(): List<Currency> {