From ea657bbba7dfc1bb1bc23f636fb702951a0af4d0 Mon Sep 17 00:00:00 2001 From: Tangem Date: Fri, 18 Jul 2025 16:11:18 +0500 Subject: [PATCH] Updated on 2026-08-14 --- .../v2/subcomponents/amount/model/SendAmountModel.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/subcomponents/amount/model/SendAmountModel.kt b/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/subcomponents/amount/model/SendAmountModel.kt index 383cb1f3eb..cfbca33bde 100644 --- a/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/subcomponents/amount/model/SendAmountModel.kt +++ b/features/send-v2/impl/src/main/java/com/tangem/features/send/v2/subcomponents/amount/model/SendAmountModel.kt @@ -81,6 +81,10 @@ internal class SendAmountModel @Inject constructor( configAmountNavigation() initAppCurrency() subscribeOnCryptoCurrencyStatusFlow() + subscribeOnAmountReduceByTriggerUpdates() + subscribeOnAmountReduceToTriggerUpdates() + subscribeOnAmountIgnoreReduceTriggerUpdates() + subscribeOnAmountUpdateQRTriggerUpdates() } private fun initAppCurrency() { @@ -95,12 +99,6 @@ internal class SendAmountModel @Inject constructor( .onEach { newCryptoCurrencyStatus -> cryptoCurrencyStatus = newCryptoCurrencyStatus maxAmountBoundary = MaxEnterAmountConverter().convert(cryptoCurrencyStatus) - if (uiState.value is AmountState.Empty) { - subscribeOnAmountReduceByTriggerUpdates() - subscribeOnAmountReduceToTriggerUpdates() - subscribeOnAmountIgnoreReduceTriggerUpdates() - subscribeOnAmountUpdateQRTriggerUpdates() - } initMinBoundary() } .launchIn(modelScope)