|
158 | 158 | active-screen? (= view-id current-screen-id)
|
159 | 159 | bottom (safe-area/get-bottom)
|
160 | 160 | [crypto-currency? set-crypto-currency] (rn/use-state initial-crypto-currency?)
|
161 |
| - on-navigate-back on-navigate-back |
162 | 161 | handle-on-confirm (fn [amount]
|
163 | 162 | (rf/dispatch [:wallet/set-token-amount-to-send
|
164 | 163 | {:amount amount
|
165 | 164 | :stack-id current-screen-id}]))
|
166 | 165 | {fiat-currency :currency} (rf/sub [:profile/profile])
|
167 |
| - {token-symbol :symbol |
| 166 | + {token-symbol :symbol |
168 | 167 | token-networks :networks
|
169 |
| - :as |
170 |
| - token} (rf/sub [:wallet/wallet-send-token]) |
| 168 | + :as token} (rf/sub [:wallet/wallet-send-token]) |
171 | 169 | send-from-locked-amounts (rf/sub [:wallet/wallet-send-from-locked-amounts])
|
172 | 170 | {:keys [total-balance]
|
173 | 171 | :as token-by-symbol} (rf/sub [:wallet/token-by-symbol
|
|
196 | 194 | (utils/cut-crypto-decimals-to-fit-usd-cents
|
197 | 195 | token-balance
|
198 | 196 | usd-conversion-rate)
|
199 |
| - (-> (money/crypto->fiat |
200 |
| - token-balance |
201 |
| - conversion-rate) |
202 |
| - utils/cut-fiat-balance-to-two-decimals)) |
| 197 | + (utils/cut-fiat-balance-to-two-decimals |
| 198 | + (money/crypto->fiat token-balance conversion-rate))) |
203 | 199 | input-value (controlled-input/input-value input-state)
|
204 | 200 | valid-input? (not (or (controlled-input/empty-value? input-state)
|
205 | 201 | (controlled-input/input-error input-state)))
|
|
389 | 385 | :button-one-label (if should-try-again?
|
390 | 386 | (i18n/label :t/try-again)
|
391 | 387 | button-one-label)
|
392 |
| - :button-one-props (merge (when-not should-try-again? button-one-props) |
| 388 | + :button-one-props (merge (when-not should-try-again? |
| 389 | + button-one-props) |
393 | 390 | {:disabled? (or loading-routes?
|
394 | 391 | (and (not should-try-again?) confirm-disabled?))
|
395 | 392 | :on-press (cond
|
|
0 commit comments