From a912125ba948700cce363a33d6e988a7fbb16e6c Mon Sep 17 00:00:00 2001 From: mmilad75 <55688834+mmilad75@users.noreply.github.com> Date: Wed, 17 Jul 2024 10:47:27 +0200 Subject: [PATCH] Token value shows fiat value on the transaction confirmation page #20734 (#20770) --- src/status_im/contexts/wallet/send/input_amount/view.cljs | 6 ++---- .../contexts/wallet/send/transaction_confirmation/view.cljs | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/status_im/contexts/wallet/send/input_amount/view.cljs b/src/status_im/contexts/wallet/send/input_amount/view.cljs index 5bfd9bc244..52373ea80c 100644 --- a/src/status_im/contexts/wallet/send/input_amount/view.cljs +++ b/src/status_im/contexts/wallet/send/input_amount/view.cljs @@ -154,11 +154,9 @@ [input-state set-input-state] (rn/use-state controlled-input/init-state) [just-toggled-mode? set-just-toggled-mode?] (rn/use-state false) clear-input! #(set-input-state controlled-input/delete-all) - handle-on-confirm (fn [] + handle-on-confirm (fn [amount] (rf/dispatch [:wallet/set-token-amount-to-send - {:amount - (controlled-input/input-value - input-state) + {:amount amount :stack-id current-screen-id}])) {fiat-currency :currency} (rf/sub [:profile/profile]) {token-symbol :symbol diff --git a/src/status_im/contexts/wallet/send/transaction_confirmation/view.cljs b/src/status_im/contexts/wallet/send/transaction_confirmation/view.cljs index 7f2fd8263f..c35bd8984b 100644 --- a/src/status_im/contexts/wallet/send/transaction_confirmation/view.cljs +++ b/src/status_im/contexts/wallet/send/transaction_confirmation/view.cljs @@ -157,7 +157,6 @@ [quo/data-item {:container-style style/detail-item :blur? false - :description :default :card? false :status :default :size :small