Updated on 2026-08-14

This commit is contained in:
Tangem 2024-09-20 16:02:14 +03:00
parent 4a726e436c
commit ecdeb1b820
2 changed files with 5 additions and 1 deletions

View file

@ -62,7 +62,7 @@ internal class AddToPortfolioBSContentUMFactory(
onNetworkSwitchClick = onNetworkSwitchClick,
).convert(value = token),
isScanCardNotificationVisible = portfolioUIData.hasMissedDerivations,
continueButtonEnabled = portfolioUIData.addToPortfolioData.isUserChangedNetworks(
continueButtonEnabled = portfolioUIData.addToPortfolioData.isUserAddedNetworks(
userWalletId = selectedWallet.walletId,
),
onContinueButtonClick = {

View file

@ -152,6 +152,10 @@ internal class AddToPortfolioManager @Inject constructor() {
.orEmpty()
}
fun isUserAddedNetworks(userWalletId: UserWalletId): Boolean {
return addedNetworks[userWalletId].orEmpty().isNotEmpty()
}
fun isUserChangedNetworks(userWalletId: UserWalletId): Boolean {
return addedNetworks[userWalletId].orEmpty().isNotEmpty() ||
removedNetworks[userWalletId].orEmpty().isNotEmpty()