From 4be98b10bfade08145ee633af9e8f3aae5b794be Mon Sep 17 00:00:00 2001 From: Goran Jovic Date: Wed, 1 Aug 2018 11:16:40 +0200 Subject: [PATCH] bug #4404 - removed the 21 char limit from amount field in send and request Signed-off-by: Goran Jovic --- src/status_im/ui/screens/wallet/request/views.cljs | 3 +-- src/status_im/ui/screens/wallet/send/views.cljs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/status_im/ui/screens/wallet/request/views.cljs b/src/status_im/ui/screens/wallet/request/views.cljs index ffc7bd1313..cfecd14949 100644 --- a/src/status_im/ui/screens/wallet/request/views.cljs +++ b/src/status_im/ui/screens/wallet/request/views.cljs @@ -47,8 +47,7 @@ [components/amount-selector {:error amount-error :amount amount :amount-text amount-text - :input-options {:max-length 21 - :on-focus (fn [] (when @scroll (utils/set-timeout #(.scrollToEnd @scroll) 100))) + :input-options {: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])}} token]]] [bottom-buttons/bottom-buttons styles/bottom-buttons diff --git a/src/status_im/ui/screens/wallet/send/views.cljs b/src/status_im/ui/screens/wallet/send/views.cljs index f1ea316177..1ebd131e2b 100644 --- a/src/status_im/ui/screens/wallet/send/views.cljs +++ b/src/status_im/ui/screens/wallet/send/views.cljs @@ -244,8 +244,7 @@ (when-not sufficient-gas? (i18n/label :t/wallet-insufficient-gas))) :amount amount :amount-text amount-text - :input-options {:max-length 21 - :on-focus (fn [] (when (and scroll @scroll) (utils/set-timeout #(.scrollToEnd @scroll) 100))) + :input-options {: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] [advanced-options advanced? transaction modal? scroll]]] (if signing?