mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-14 10:46:21 +00:00
[#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)
|
(or (js/isNaN amount)
|
||||||
(> (count portions) 2)
|
(> (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)
|
{:title (i18n/label :t/send-request-amount)
|
||||||
:description (i18n/label :t/send-request-amount-invalid-number)}
|
:description (i18n/label :t/send-request-amount-invalid-number)}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user