From 554d3ee84c4bdc79dc9f6f9e287c3735e66e63e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Sat, 1 Feb 2020 17:19:40 +0100 Subject: [PATCH] Missing ! operator --- static/js/floatUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/floatUtils.js b/static/js/floatUtils.js index fb81107a..c9410ae4 100644 --- a/static/js/floatUtils.js +++ b/static/js/floatUtils.js @@ -18,7 +18,7 @@ class stringFloat{ } function checkFloat(string) { try { - return isNaN(parseFloat(string)) + return !isNaN(parseFloat(string)) } catch (error) { return false }