Skip to content

Commit

Permalink
fix: entering two zeros in a row in the 'Amount' field in wallet (#19911
Browse files Browse the repository at this point in the history
)

fix: entering two zeros in a row in the 'Amount' field in wallet
  • Loading branch information
OmarBasem committed May 9, 2024
1 parent 497c95f commit 7f40f41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/status_im/common/controlled_input/utils.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7f40f41

Please sign in to comment.