From 9b99deaa980fa520c36b882b8ae355dbdb8d0190 Mon Sep 17 00:00:00 2001 From: Tangem Date: Thu, 27 Nov 2025 11:31:58 +0300 Subject: [PATCH] Updated on 2026-08-14 --- .../impl/model/AddToPortfolioBSContentUMFactory.kt | 6 +----- .../markets/portfolio/impl/model/MyPortfolioUMFactory.kt | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/impl/model/AddToPortfolioBSContentUMFactory.kt b/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/impl/model/AddToPortfolioBSContentUMFactory.kt index 7d607c26d9..0b6b839c45 100644 --- a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/impl/model/AddToPortfolioBSContentUMFactory.kt +++ b/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/impl/model/AddToPortfolioBSContentUMFactory.kt @@ -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, ), ) }, diff --git a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/impl/model/MyPortfolioUMFactory.kt b/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/impl/model/MyPortfolioUMFactory.kt index 44fd810a9a..9fe46dc75b 100644 --- a/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/impl/model/MyPortfolioUMFactory.kt +++ b/features/markets/impl/src/main/kotlin/com/tangem/features/markets/portfolio/impl/model/MyPortfolioUMFactory.kt @@ -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()