mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-10 05:35:05 +08:00
parsing to int
This commit is contained in:
parent
86d7207c39
commit
9996d90e42
1 changed files with 3 additions and 0 deletions
|
@ -1695,6 +1695,9 @@ export function setCustomBackgroundFilter(
|
|||
array: MonkeyTypes.CustomBackgroundFilter,
|
||||
nosave?: boolean
|
||||
): void {
|
||||
array = (array as unknown as string[]).map((value) =>
|
||||
parseInt(value)
|
||||
) as MonkeyTypes.CustomBackgroundFilter;
|
||||
if (!isConfigValueValid(array, ["numberArray"]))
|
||||
return invalid("custom background filter", array);
|
||||
|
||||
|
|
Loading…
Reference in a new issue