diff --git a/common/ui-markets/src/main/kotlin/com/tangem/common/ui/markets/action/TokenActionsHandler.kt b/common/ui-markets/src/main/kotlin/com/tangem/common/ui/markets/action/TokenActionsHandler.kt index 3b59bc5471..02e289b3f1 100644 --- a/common/ui-markets/src/main/kotlin/com/tangem/common/ui/markets/action/TokenActionsHandler.kt +++ b/common/ui-markets/src/main/kotlin/com/tangem/common/ui/markets/action/TokenActionsHandler.kt @@ -105,8 +105,7 @@ class TokenActionsHandler @AssistedInject constructor( private fun isTopUpBlockedByBackupError(action: TokenActionsBSContentUM.Action, userWallet: UserWallet): Boolean { val isBlockedAction = action == TokenActionsBSContentUM.Action.Buy || - action == TokenActionsBSContentUM.Action.Receive || - action == TokenActionsBSContentUM.Action.Exchange + action == TokenActionsBSContentUM.Action.Receive if (!isBlockedAction) return false if (!isWalletBackupProblematicUseCase(userWallet)) return false diff --git a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/model/TokenDetailsModel.kt b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/model/TokenDetailsModel.kt index d86bc04a23..bcbc740e09 100644 --- a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/model/TokenDetailsModel.kt +++ b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/model/TokenDetailsModel.kt @@ -853,7 +853,6 @@ internal class TokenDetailsModel @Inject constructor( if (handleUnavailabilityReason(unavailabilityReason = unavailabilityReason)) { return } - if (isTopUpBlockedByBackupError()) return modelScope.launch { if (checkYieldSupply && needShowYieldSupplyDepositedWarningUseCase(cryptoCurrencyStatus)) { diff --git a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/child/wallet/model/intents/WalletCurrencyActionsClickIntents.kt b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/child/wallet/model/intents/WalletCurrencyActionsClickIntents.kt index 1b19f874c0..b2cc823dbd 100644 --- a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/child/wallet/model/intents/WalletCurrencyActionsClickIntents.kt +++ b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/child/wallet/model/intents/WalletCurrencyActionsClickIntents.kt @@ -373,7 +373,6 @@ internal class WalletCurrencyActionsClickIntentsImplementor @Inject constructor( ) if (handleUnavailabilityReason(unavailabilityReason)) return - if (isTopUpBlockedByBackupError(accountId.userWalletId)) return modelScope.launch(dispatchers.main) { if (needShowYieldSupplyWarning(cryptoCurrencyStatus)) { @@ -462,7 +461,6 @@ internal class WalletCurrencyActionsClickIntentsImplementor @Inject constructor( } override fun onMultiWalletSwapClick(userWalletId: UserWalletId) { - if (isTopUpBlockedByBackupError(userWalletId)) return if (!isMultiWalletTokensLoaded()) return modelScope.launch {