From 1f649794eb366c6cefdac7086c2d9834f6544453 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Mon, 27 Apr 2020 09:39:36 -0700 Subject: [PATCH] fixes small issue. --- src/cljs/auto_ap/views/utils.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cljs/auto_ap/views/utils.cljs b/src/cljs/auto_ap/views/utils.cljs index 543d43f4..eb239eb0 100644 --- a/src/cljs/auto_ap/views/utils.cljs +++ b/src/cljs/auto_ap/views/utils.cljs @@ -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