Skip to content

Commit

Permalink
fix subs names
Browse files Browse the repository at this point in the history
  • Loading branch information
briansztamfater committed Apr 8, 2024
1 parent 9397b5a commit 4555caa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
:wallet/token-by-symbol {:symbol :eth
:total-balance 100
:market-values-per-currency {:usd {:price 10}}}
:wallet/wallet-disabled-from-chain-ids []
:wallet/wallet-from-values-by-chain {1 (money/bignumber "250")}
:wallet/wallet-to-values-by-chain {1 (money/bignumber "250")}})
:wallet/wallet-send-disabled-from-chain-ids []
:wallet/wallet-send-from-values-by-chain {1 (money/bignumber "250")}
:wallet/wallet-send-to-values-by-chain {1 (money/bignumber "250")}})

(h/describe "Send > input amount screen"
(h/setup-restorable-re-frame)
Expand Down
6 changes: 3 additions & 3 deletions src/status_im/contexts/wallet/send/input_amount/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@
best-routes (when suggested-routes (or (:best suggested-routes) []))
route (rf/sub [:wallet/wallet-send-route])
to-address (rf/sub [:wallet/wallet-send-to-address])
disabled-from-chain-ids (rf/sub [:wallet/wallet-disabled-from-chain-ids])
from-values-by-chain (rf/sub [:wallet/wallet-from-values-by-chain])
to-values-by-chain (rf/sub [:wallet/wallet-to-values-by-chain])
disabled-from-chain-ids (rf/sub [:wallet/wallet-send-disabled-from-chain-ids])
from-values-by-chain (rf/sub [:wallet/wallet-send-from-values-by-chain])
to-values-by-chain (rf/sub [:wallet/wallet-send-to-values-by-chain])
on-confirm (or default-on-confirm handle-on-confirm)
crypto-decimals (or default-crypto-decimals
(utils/get-crypto-decimals-count token))
Expand Down
6 changes: 3 additions & 3 deletions src/status_im/subs/wallet/wallet.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,17 @@
:-> :amount)

(rf/reg-sub
:wallet/wallet-disabled-from-chain-ids
:wallet/wallet-send-disabled-from-chain-ids
:<- [:wallet/wallet-send]
:-> :disabled-from-chain-ids)

(rf/reg-sub
:wallet/wallet-from-values-by-chain
:wallet/wallet-send-from-values-by-chain
:<- [:wallet/wallet-send]
:-> :from-values-by-chain)

(rf/reg-sub
:wallet/wallet-to-values-by-chain
:wallet/wallet-send-to-values-by-chain
:<- [:wallet/wallet-send]
:-> :to-values-by-chain)

Expand Down

0 comments on commit 4555caa

Please sign in to comment.