From 7f40f410e756835a42fba169c6bd9d557451c84c Mon Sep 17 00:00:00 2001 From: Omar Basem Date: Thu, 9 May 2024 12:23:17 +0400 Subject: [PATCH] fix: entering two zeros in a row in the 'Amount' field in wallet (#19911) fix: entering two zeros in a row in the 'Amount' field in wallet --- src/status_im/common/controlled_input/utils.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/status_im/common/controlled_input/utils.cljs b/src/status_im/common/controlled_input/utils.cljs index 78c1aace4b..fb12d4ca1c 100644 --- a/src/status_im/common/controlled_input/utils.cljs +++ b/src/status_im/common/controlled_input/utils.cljs @@ -78,9 +78,10 @@ (defn add-character [state character] - (when (can-add-character? state character) + (if (can-add-character? state character) (set-input-value state - (normalize-value-as-numeric (input-value state) character)))) + (normalize-value-as-numeric (input-value state) character)) + state)) (defn delete-last [state]