From b928f87a79812f5073ffd443ff12e70808cfcf6b Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 16 Jan 2023 16:10:56 -0800 Subject: [PATCH] fix min checking Signed-off-by: Arthur Lu --- scripts/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.js b/scripts/config.js index 85ed56f..7bf2a9d 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -177,7 +177,7 @@ function handleUnitChange () { let sizeInput = document.querySelector(`#${this.id.replace("unit", "size")}`); if (newUnitIndex == 0) { sizeInput.min = sizeInput.minSize; - if (sizeInput.value < sizeInput.min) { + if (parseInt(sizeInput.value) < parseInt(sizeInput.min)) { sizeInput.value = sizeInput.min; } }