bug #4404 - removed the 21 char limit from amount field in send and request

Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
Goran Jovic 2018-08-01 11:16:40 +02:00
parent 6d2161c1d4
commit 4be98b10bf
No known key found for this signature in database
GPG Key ID: D429D1A9B2EB8A8E
2 changed files with 2 additions and 4 deletions

View File

@ -47,8 +47,7 @@
[components/amount-selector {:error amount-error [components/amount-selector {:error amount-error
:amount amount :amount amount
:amount-text amount-text :amount-text amount-text
:input-options {:max-length 21 :input-options {:on-focus (fn [] (when @scroll (utils/set-timeout #(.scrollToEnd @scroll) 100)))
:on-focus (fn [] (when @scroll (utils/set-timeout #(.scrollToEnd @scroll) 100)))
:on-change-text #(re-frame/dispatch [:wallet.request/set-and-validate-amount % symbol decimals])}} :on-change-text #(re-frame/dispatch [:wallet.request/set-and-validate-amount % symbol decimals])}}
token]]] token]]]
[bottom-buttons/bottom-buttons styles/bottom-buttons [bottom-buttons/bottom-buttons styles/bottom-buttons

View File

@ -244,8 +244,7 @@
(when-not sufficient-gas? (i18n/label :t/wallet-insufficient-gas))) (when-not sufficient-gas? (i18n/label :t/wallet-insufficient-gas)))
:amount amount :amount amount
:amount-text amount-text :amount-text amount-text
:input-options {:max-length 21 :input-options {:on-focus (fn [] (when (and scroll @scroll) (utils/set-timeout #(.scrollToEnd @scroll) 100)))
:on-focus (fn [] (when (and scroll @scroll) (utils/set-timeout #(.scrollToEnd @scroll) 100)))
:on-change-text #(re-frame/dispatch [:wallet.send/set-and-validate-amount % symbol decimals])}} token] :on-change-text #(re-frame/dispatch [:wallet.send/set-and-validate-amount % symbol decimals])}} token]
[advanced-options advanced? transaction modal? scroll]]] [advanced-options advanced? transaction modal? scroll]]]
(if signing? (if signing?