[#1442] Allow only decimal number in send command
This commit is contained in:
parent
6b99225e06
commit
aaaa625e9a
|
@ -161,7 +161,9 @@
|
|||
|
||||
(or (js/isNaN amount)
|
||||
(> (count portions) 2)
|
||||
(re-matches #".+(\.|,)$" amount-string))
|
||||
(re-matches #".+(\.|,)$" amount-string)
|
||||
;; check if non-decimal number
|
||||
(re-matches #"0[\dbxo][\d\.]*" amount-string))
|
||||
{:title (i18n/label :t/send-request-amount)
|
||||
:description (i18n/label :t/send-request-amount-invalid-number)}
|
||||
|
||||
|
|
Loading…
Reference in New Issue