Updated on 2026-08-14
This commit is contained in:
parent
2fd785580d
commit
b8a8dc0642
2 changed files with 2 additions and 5 deletions
|
|
@ -7,6 +7,7 @@ import com.tangem.data.tokens.utils.ResponseCryptoCurrenciesFactory
|
|||
import com.tangem.datasource.local.network.NetworksStatusesStore
|
||||
import com.tangem.datasource.local.token.UserTokensStore
|
||||
import com.tangem.datasource.local.userwallet.UserWalletsStore
|
||||
import com.tangem.domain.common.util.cardTypesResolver
|
||||
import com.tangem.domain.demo.DemoConfig
|
||||
import com.tangem.domain.tokens.model.CryptoCurrency
|
||||
import com.tangem.domain.tokens.model.Network
|
||||
|
|
@ -162,7 +163,7 @@ internal class DefaultNetworksRepository(
|
|||
|
||||
responseCurrenciesFactory.createCurrencies(response, userWallet.scanResponse).asSequence()
|
||||
} else {
|
||||
if (userWallet.isSingleWalletWithTokens()) {
|
||||
if (userWallet.scanResponse.cardTypesResolver.isSingleWalletWithToken()) {
|
||||
cardCurrenciesFactory.createCurrenciesForSingleCurrencyCardWithToken(userWallet.scanResponse)
|
||||
.asSequence()
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -34,8 +34,4 @@ data class UserWallet(
|
|||
|
||||
/** Indicated if this primary card is imported */
|
||||
val isImported: Boolean get() = scanResponse.card.wallets.any(CardDTO.Wallet::isImported)
|
||||
|
||||
fun isSingleWalletWithTokens(): Boolean {
|
||||
return scanResponse.walletData?.token != null && !isMultiCurrency
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue