Skip to content

Commit

Permalink
Clean up dirty pause_on_weekend setting that sometimes gets set to a …
Browse files Browse the repository at this point in the history
…string for some reason
  • Loading branch information
anoek committed Jan 17, 2024
1 parent 588482e commit b4dc731
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/TimeControl/TimeControlUpdates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ function validateSettings(
if (tc.speed !== "correspondence") {
tc.pause_on_weekends = false;
}
if (typeof tc.pause_on_weekends !== "boolean") {
tc.pause_on_weekends = false;
}
return tc;
}

Expand Down

0 comments on commit b4dc731

Please sign in to comment.