From 4ef4d42a9ed18790732c8f16cc3039f00c352ce8 Mon Sep 17 00:00:00 2001 From: Tangem Date: Mon, 25 Apr 2022 22:05:00 +0300 Subject: [PATCH] Updated on 2026-08-14 --- .../features/addCustomToken/redux/AddCustomTokenHub.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/domain/src/main/java/com/tangem/domain/features/addCustomToken/redux/AddCustomTokenHub.kt b/domain/src/main/java/com/tangem/domain/features/addCustomToken/redux/AddCustomTokenHub.kt index f57375ce14..af5a758664 100644 --- a/domain/src/main/java/com/tangem/domain/features/addCustomToken/redux/AddCustomTokenHub.kt +++ b/domain/src/main/java/com/tangem/domain/features/addCustomToken/redux/AddCustomTokenHub.kt @@ -69,10 +69,12 @@ internal class AddCustomTokenHub : BaseStoreHub("AddCustomT val contractAddress = ContractAddress.getFieldValue() validateContractAddressAndNotify(contractAddress) - val isAlreadyAdded = isBlockchainPersistIntoAppSavedTokensList( - selectedNetwork = action.blockchainNetwork.value - ) - updateWarningAlreadyAdded(isAlreadyAdded) + if (!hubState.tokensAnyFieldsIsFilled()){ + val isAlreadyAdded = isBlockchainPersistIntoAppSavedTokensList( + selectedNetwork = action.blockchainNetwork.value + ) + updateWarningAlreadyAdded(isAlreadyAdded) + } checkAndUpdateAddButton() } is OnTokenDerivationPathChanged -> {