Fix isInRange for strings
This commit is contained in:
parent
762d5a5114
commit
962051be59
|
@ -117,7 +117,7 @@ div>label {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isInRange(number, min, max) {
|
function isInRange(number, min, max) {
|
||||||
return number >= min && number <= max;
|
return Number(number) >= Number(min) && Number(number) <= Number(max);
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_power(ext, row) {
|
function add_power(ext, row) {
|
||||||
|
|
Loading…
Reference in a new issue