refactor(input): switch to Number.isNaN to avoid type coercion

This commit is contained in:
peaklabs-dev committed 2026-04-02 22:15:42 +02:00
1 parent ac158ba923
commit 3defb5b3a6
1 file changed
+1 -1
+1 -1
View File
@@ -141,7 +141,7 @@ export function getSettings(): Settings {
}
function validateNumber(value: number, name: string, min: number, max: number): void {
if (isNaN(value)) {
if (Number.isNaN(value)) {
throw new Error(`"${name}" must be a valid number`);
}
if (value < min || value > max) {