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 5d21995d73..f57375ce14 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 @@ -67,16 +67,13 @@ internal class AddCustomTokenHub : BaseStoreHub("AddCustomT if (!action.blockchainNetwork.isUserInput) return val contractAddress = ContractAddress.getFieldValue() - when (validateContractAddressAndNotify(contractAddress)) { - is AddCustomTokenError.InvalidContractAddress -> { - val isAlreadyAdded = isBlockchainPersistIntoAppSavedTokensList( - selectedNetwork = action.blockchainNetwork.value - ) - updateWarningAlreadyAdded(isAlreadyAdded) - checkAndUpdateAddButton() - } - else -> {} - } + validateContractAddressAndNotify(contractAddress) + + val isAlreadyAdded = isBlockchainPersistIntoAppSavedTokensList( + selectedNetwork = action.blockchainNetwork.value + ) + updateWarningAlreadyAdded(isAlreadyAdded) + checkAndUpdateAddButton() } is OnTokenDerivationPathChanged -> { val isAlreadyAdded = if (ContractAddress.isFilled()) {