diff --git a/src/status_im/contexts/wallet/send/input_amount/view.cljs b/src/status_im/contexts/wallet/send/input_amount/view.cljs index 0b79651341..83d9eade8a 100644 --- a/src/status_im/contexts/wallet/send/input_amount/view.cljs +++ b/src/status_im/contexts/wallet/send/input_amount/view.cljs @@ -166,23 +166,22 @@ :status (when value-out-of-limits? :error)}]}])) (defn routes-view [current-screen-id] - (let [token-by-symbol (rf/sub [:send-input-amount-screen/token-by-symbol]) - token (rf/sub [:wallet/wallet-send-token]) - routes (rf/sub [:send-input-amount-screen/routes]) - valid-input? (rf/sub [:send-input-amount-screen/valid-input?]) - amount-in-crypto (rf/sub [:send-input-amount-screen/amount-in-crypto]) - limit-exceeded? (rf/sub [:send-input-amount-screen/upper-limit-exceeded?]) + (let [token-by-symbol (rf/sub [:send-input-amount-screen/token-by-symbol]) + token (rf/sub [:wallet/wallet-send-token]) + routes (rf/sub [:send-input-amount-screen/routes]) + valid-input? (rf/sub [:send-input-amount-screen/valid-input?]) + amount-in-crypto (rf/sub [:send-input-amount-screen/amount-in-crypto]) + limit-exceeded? (rf/sub [:send-input-amount-screen/upper-limit-exceeded?]) unsupported-token-in-receiver? (rf/sub [:send-input-amount-screen/unsupported-token-in-receiver?]) - request-fetch-routes - (fn [bounce-duration-ms] - (fetch-routes - {:amount amount-in-crypto - :valid-input? valid-input? - :bounce-duration-ms bounce-duration-ms - :token token - :reset-amounts-to-zero? (and limit-exceeded? - (some? routes))}))] + request-fetch-routes (fn [bounce-duration-ms] + (fetch-routes + {:amount amount-in-crypto + :valid-input? valid-input? + :bounce-duration-ms bounce-duration-ms + :token token + :reset-amounts-to-zero? (and limit-exceeded? + (some? routes))}))] [routes/view {:token token-by-symbol :send-amount-in-crypto amount-in-crypto diff --git a/src/status_im/subs/wallet/screens/input_amount.cljs b/src/status_im/subs/wallet/screens/input_amount.cljs index 0ac5619cf8..478b3f78fc 100644 --- a/src/status_im/subs/wallet/screens/input_amount.cljs +++ b/src/status_im/subs/wallet/screens/input_amount.cljs @@ -107,8 +107,7 @@ (money/bignumber upper-limit) conversion-rate) (utils/prettify-balance currency-symbol - (money/bignumber upper-limit))) - )) + (money/bignumber upper-limit))))) (rf/reg-sub :send-input-amount-screen/upper-limit-exceeded? :<- [:send-input-amount-screen/state]