From 4efb3c111a7bd523de1e1e6204f306de105b76c3 Mon Sep 17 00:00:00 2001 From: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com> Date: Thu, 28 Nov 2024 22:59:19 +0530 Subject: [PATCH] fix(wallet)_: error on tapping from/to section in tx confirmation screen (#21695) This commit fixes the error thrown when tapping the From or To sections in the transaction confirmation screen. Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com> --- .../send/transaction_confirmation/view.cljs | 64 +++++++++---------- 1 file changed, 30 insertions(+), 34 deletions(-) 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 e03098078a..621588140d 100644 --- a/src/status_im/contexts/wallet/send/transaction_confirmation/view.cljs +++ b/src/status_im/contexts/wallet/send/transaction_confirmation/view.cljs @@ -286,37 +286,33 @@ :gradient-cover? true :customization-color (:color account)} [rn/view - [rn/pressable - {:on-press #(rf/dispatch [:navigate-to-within-stack - [:screen/wallet.transaction-details - :screen/wallet.transaction-confirmation]])} - [transaction-title - {:token-display-name token-symbol - :amount amount - :account account - :type type - :recipient recipient - :route route - :to-network bridge-to-network - :image-url image-url - :transaction-type transaction-type - :collectible? collectible?}] - [user-summary - {:summary-type :status-account - :accessibility-label :summary-from-label - :label (i18n/label :t/from-capitalized) - :account-props from-account-props - :theme theme}] - [user-summary - {:summary-type (if (= transaction-type :tx/bridge) - :status-account - :account) - :accessibility-label :summary-to-label - :label (i18n/label :t/to-capitalized) - :account-props (if (= transaction-type :tx/bridge) - from-account-props - user-props) - :recipient recipient - :bridge-tx? (= transaction-type :tx/bridge) - :account-to? true - :theme theme}]]]]])))) + [transaction-title + {:token-display-name token-symbol + :amount amount + :account account + :type type + :recipient recipient + :route route + :to-network bridge-to-network + :image-url image-url + :transaction-type transaction-type + :collectible? collectible?}] + [user-summary + {:summary-type :status-account + :accessibility-label :summary-from-label + :label (i18n/label :t/from-capitalized) + :account-props from-account-props + :theme theme}] + [user-summary + {:summary-type (if (= transaction-type :tx/bridge) + :status-account + :account) + :accessibility-label :summary-to-label + :label (i18n/label :t/to-capitalized) + :account-props (if (= transaction-type :tx/bridge) + from-account-props + user-props) + :recipient recipient + :bridge-tx? (= transaction-type :tx/bridge) + :account-to? true + :theme theme}]]]]))))