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>
This commit is contained in:
Mohamed Javid 2024-11-28 22:59:19 +05:30 committed by GitHub
parent de2b5fb935
commit 4efb3c111a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -286,37 +286,33 @@
:gradient-cover? true :gradient-cover? true
:customization-color (:color account)} :customization-color (:color account)}
[rn/view [rn/view
[rn/pressable [transaction-title
{:on-press #(rf/dispatch [:navigate-to-within-stack {:token-display-name token-symbol
[:screen/wallet.transaction-details :amount amount
:screen/wallet.transaction-confirmation]])} :account account
[transaction-title :type type
{:token-display-name token-symbol :recipient recipient
:amount amount :route route
:account account :to-network bridge-to-network
:type type :image-url image-url
:recipient recipient :transaction-type transaction-type
:route route :collectible? collectible?}]
:to-network bridge-to-network [user-summary
:image-url image-url {:summary-type :status-account
:transaction-type transaction-type :accessibility-label :summary-from-label
:collectible? collectible?}] :label (i18n/label :t/from-capitalized)
[user-summary :account-props from-account-props
{:summary-type :status-account :theme theme}]
:accessibility-label :summary-from-label [user-summary
:label (i18n/label :t/from-capitalized) {:summary-type (if (= transaction-type :tx/bridge)
:account-props from-account-props :status-account
:theme theme}] :account)
[user-summary :accessibility-label :summary-to-label
{:summary-type (if (= transaction-type :tx/bridge) :label (i18n/label :t/to-capitalized)
:status-account :account-props (if (= transaction-type :tx/bridge)
:account) from-account-props
:accessibility-label :summary-to-label user-props)
:label (i18n/label :t/to-capitalized) :recipient recipient
:account-props (if (= transaction-type :tx/bridge) :bridge-tx? (= transaction-type :tx/bridge)
from-account-props :account-to? true
user-props) :theme theme}]]]]))))
:recipient recipient
:bridge-tx? (= transaction-type :tx/bridge)
:account-to? true
:theme theme}]]]]]))))