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
This commit is contained in:
Omar Basem 2024-05-09 12:23:17 +04:00 committed by GitHub
parent 497c95fd26
commit 7f40f410e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -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]