Updated on 2026-08-14
This commit is contained in:
parent
3590da6e28
commit
ec8612af7f
1 changed files with 5 additions and 3 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue