mirror of
https://github.com/status-im/status-react.git
synced 2025-02-02 22:25:12 +00:00
fix_: include assets only related to selected network on edit asset drawer on send and bridge flows (#21869)
Signed-off-by: Brian Sztamfater <brian@status.im>
This commit is contained in:
parent
5007dc757f
commit
c1b0f3ae98
@ -22,7 +22,9 @@
|
||||
|
||||
(defn select-asset-bottom-sheet
|
||||
[clear-input!]
|
||||
(let [{preselected-token-symbol :symbol} (rf/sub [:wallet/wallet-send-token])]
|
||||
(let [{preselected-token-symbol :symbol} (rf/sub [:wallet/wallet-send-token])
|
||||
network (rf/sub [:wallet/send-network])
|
||||
chain-id (:chain-id network)]
|
||||
[:<> ;; Need to be a `:<>` to keep `asset-list` scrollable.
|
||||
[quo/drawer-top
|
||||
{:title (i18n/label :t/select-token)
|
||||
@ -31,6 +33,7 @@
|
||||
{:content-container-style {:padding-horizontal 8
|
||||
:padding-bottom 8}
|
||||
:preselected-token-symbol preselected-token-symbol
|
||||
:chain-ids [chain-id]
|
||||
:on-token-press (fn [token]
|
||||
(rf/dispatch [:wallet/edit-token-to-send token])
|
||||
(clear-input!))}]]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user