From 45e480839abc23d391693e753ba9ae1dcc81be94 Mon Sep 17 00:00:00 2001 From: koksnuss Date: Tue, 19 May 2020 23:01:06 +0200 Subject: [PATCH] #30: also convert to number on the client side --- coinmanager/coinc/static/coinc/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coinmanager/coinc/static/coinc/main.js b/coinmanager/coinc/static/coinc/main.js index 60f089c..0c10001 100644 --- a/coinmanager/coinc/static/coinc/main.js +++ b/coinmanager/coinc/static/coinc/main.js @@ -211,7 +211,7 @@ function save_settings() { settings['found_on'] = found_on; } - let circulation = $('#circulation').val(); + let circulation = Number(String($('#circulation').val()).replace('/./g', '')); if (isNaN(parseInt(circulation)) || circulation < 0 || circulation > 1000000000) { settings['circulation'] = 0; } else {