Skip to content

Commit c1b0f3a

Browse files
fix_: include assets only related to selected network on edit asset drawer on send and bridge flows (#21869)
Signed-off-by: Brian Sztamfater <[email protected]>
1 parent 5007dc7 commit c1b0f3a

File tree

1 file changed

+4
-1
lines changed
  • src/status_im/contexts/wallet/send/input_amount

1 file changed

+4
-1
lines changed

src/status_im/contexts/wallet/send/input_amount/view.cljs

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222

2323
(defn select-asset-bottom-sheet
2424
[clear-input!]
25-
(let [{preselected-token-symbol :symbol} (rf/sub [:wallet/wallet-send-token])]
25+
(let [{preselected-token-symbol :symbol} (rf/sub [:wallet/wallet-send-token])
26+
network (rf/sub [:wallet/send-network])
27+
chain-id (:chain-id network)]
2628
[:<> ;; Need to be a `:<>` to keep `asset-list` scrollable.
2729
[quo/drawer-top
2830
{:title (i18n/label :t/select-token)
@@ -31,6 +33,7 @@
3133
{:content-container-style {:padding-horizontal 8
3234
:padding-bottom 8}
3335
:preselected-token-symbol preselected-token-symbol
36+
:chain-ids [chain-id]
3437
:on-token-press (fn [token]
3538
(rf/dispatch [:wallet/edit-token-to-send token])
3639
(clear-input!))}]]))

0 commit comments

Comments
 (0)