From d16c1a3c85dd1c49fa26646069508148af579af7 Mon Sep 17 00:00:00 2001 From: Volodymyr Kozieiev Date: Thu, 4 Jul 2024 15:02:57 +0100 Subject: [PATCH] Disable possibility to changes amounts to send (#20639) --- src/status_im/contexts/wallet/send/routes/view.cljs | 4 +++- src/status_im/feature_flags.cljs | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/status_im/contexts/wallet/send/routes/view.cljs b/src/status_im/contexts/wallet/send/routes/view.cljs index 65dd3718ac..9d3cd93f6f 100644 --- a/src/status_im/contexts/wallet/send/routes/view.cljs +++ b/src/status_im/contexts/wallet/send/routes/view.cljs @@ -10,6 +10,7 @@ [status-im.contexts.wallet.send.routes.style :as style] [status-im.contexts.wallet.send.utils :as send-utils] [status-im.contexts.wallet.sheets.network-preferences.view :as network-preferences] + [status-im.feature-flags :as ff] [utils.i18n :as i18n] [utils.money :as money] [utils.number :as number] @@ -387,7 +388,8 @@ chain-id-to-disable disabled-from-chain-ids token-available-networks-for-suggested-routes)) - :on-long-press (fn [chain-id amount-calculated-for-chain] + (when (ff/enabled? ::ff/wallet.custom-network-amounts) + :on-long-press) (fn [chain-id amount-calculated-for-chain] (edit-amount {:chain-id chain-id :token-symbol token-symbol diff --git a/src/status_im/feature_flags.cljs b/src/status_im/feature_flags.cljs index f748d17e3b..f730cc302d 100644 --- a/src/status_im/feature_flags.cljs +++ b/src/status_im/feature_flags.cljs @@ -25,7 +25,8 @@ ::wallet.long-press-watch-only-asset (enabled-in-env? :FLAG_LONG_PRESS_WATCH_ONLY_ASSET_ENABLED) ::wallet.saved-addresses (enabled-in-env? :WALLET_SAVED_ADDRESSES) ::wallet.swap (enabled-in-env? :FLAG_SWAP_ENABLED) - ::wallet.wallet-connect (enabled-in-env? :FLAG_WALLET_CONNECT_ENABLED)}) + ::wallet.wallet-connect (enabled-in-env? :FLAG_WALLET_CONNECT_ENABLED) + ::wallet.custom-network-amounts (enabled-in-env? :FLAG_WALLET_CUSTOM_NETWORK_AMOUNTS_ENABLED)}) (defonce ^:private feature-flags-config (reagent/atom initial-flags))