Skip to content

Commit

Permalink
fix(config): being able to set min accuracy over 100
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Oct 31, 2023
1 parent 9493f4b commit 3e72b03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/ts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ export function setMinAcc(

export function setMinAccCustom(val: number, nosave?: boolean): boolean {
if (!isConfigValueValid("min acc custom", val, ["number"])) return false;
if (val > 100) val = 100;

config.minAccCustom = val;
saveToLocalStorage("minAccCustom", nosave);
Expand Down

0 comments on commit 3e72b03

Please sign in to comment.