Updated on 2026-08-14

This commit is contained in:
Tangem 2025-11-27 12:37:18 +03:00
commit c7fcd77eb0
2 changed files with 2 additions and 5 deletions

View file

@ -81,15 +81,11 @@ internal class AddToPortfolioBSContentUMFactory(
userWalletId = selectedWallet.walletId,
),
onContinueButtonClick = {
val alreadyAddedNetworkIds = portfolioData.walletsWithCurrencies[selectedWallet].orEmpty()
.map { it.status.currency.network.backendId }
.toSet()
onContinueClick(
selectedWallet.walletId,
portfolioUIData.addToPortfolioData.getAddedNetworks(
userWalletId = selectedWallet.walletId,
alreadyAddedNetworkIds = alreadyAddedNetworkIds,
alreadyAddedNetworkIds = alreadyAddedNetworks,
),
)
},

View file

@ -99,6 +99,7 @@ internal class MyPortfolioUMFactory(
val alreadyAddedNetworks = portfolioData.walletsWithCurrencies
.filterAvailableNetworks(availableNetworks)[selectedWallet]
?.filter { !it.status.currency.isCustom }
?.map { it.status.currency.network.backendId }
?.toSet()