fixes small issue.

This commit is contained in:
Bryce Covert
2020-04-27 09:39:36 -07:00
parent 25f1cebe51
commit 1f649794eb

View File

@@ -214,8 +214,9 @@
(re-frame/dispatch (-> event
(conj field)
(conj (let [val (.. e -target -value)]
(cond (and val (not (str/blank? val)))
(js/parseFloat val)
(cond (and val (not (str/blank? val))
(not (str/ends-with? val ".")))
(js/parseFloat val)
(str/blank? val )
nil