From 3fe6b7008a2c23f3a55d33e9a1bcc5fcaa496fa1 Mon Sep 17 00:00:00 2001 From: Tangem Date: Wed, 27 Sep 2023 18:07:20 +0300 Subject: [PATCH] Updated on 2026-08-14 --- .../domain/tokens/GetCryptoCurrencyActionsUseCase.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/domain/tokens/src/main/kotlin/com/tangem/domain/tokens/GetCryptoCurrencyActionsUseCase.kt b/domain/tokens/src/main/kotlin/com/tangem/domain/tokens/GetCryptoCurrencyActionsUseCase.kt index 6727184224..cd63eb702a 100644 --- a/domain/tokens/src/main/kotlin/com/tangem/domain/tokens/GetCryptoCurrencyActionsUseCase.kt +++ b/domain/tokens/src/main/kotlin/com/tangem/domain/tokens/GetCryptoCurrencyActionsUseCase.kt @@ -70,7 +70,12 @@ class GetCryptoCurrencyActionsUseCase( } // send - activeList.add(TokenActionsState.ActionState.Send(true)) + if (cryptoCurrencyStatus.value.amount?.signum() == 0) { + disabledList.add(TokenActionsState.ActionState.Send(false)) + } else { + activeList.add(TokenActionsState.ActionState.Send(true)) + } + // receive activeList.add(TokenActionsState.ActionState.Receive(true))