From 962051be59b6a90c2c11f75880d93c51fa33698b Mon Sep 17 00:00:00 2001 From: dm5wk Date: Sun, 26 May 2024 17:08:14 +0200 Subject: [PATCH] Fix isInRange for strings --- band-plan.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/band-plan.html b/band-plan.html index 5da497f..52c6bc7 100644 --- a/band-plan.html +++ b/band-plan.html @@ -117,7 +117,7 @@ div>label { } function isInRange(number, min, max) { - return number >= min && number <= max; + return Number(number) >= Number(min) && Number(number) <= Number(max); } function add_power(ext, row) {