From 588b3607cb22c4eec593aeccdbdabe914b9dd8b8 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Thu, 26 Nov 2020 00:24:07 -0500 Subject: [PATCH] fix pulldown setting 0 to a string --- src/gui/options/options.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/options/options.js b/src/gui/options/options.js index 38bcafa8e6a..1568484d9a5 100644 --- a/src/gui/options/options.js +++ b/src/gui/options/options.js @@ -274,10 +274,10 @@ App.UI.OptionsGroup = (function() { } select.onchange = () => { const O = select.options[select.selectedIndex]; - if (Number(O.value)) { - option.object[option.property] = Number(O.value); - } else { + if (isNaN(Number(O.value))) { option.object[option.property] = O.value; + } else { + option.object[option.property] = Number(O.value); } }; buttonGroup.append(select); -- GitLab