mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-01 21:15:15 +08:00
validation no longer accepts NaN as number
This commit is contained in:
parent
ae5ec20eea
commit
6e1f2d5bf8
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ export function isConfigValueValid(
|
|||
break;
|
||||
|
||||
case "number":
|
||||
if (typeof val === "number") isValid = true;
|
||||
if (typeof val === "number" && !isNaN(val)) isValid = true;
|
||||
break;
|
||||
|
||||
case "numberArray":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue