mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 23:20:25 +08:00
validating value. part of #2413
This commit is contained in:
parent
88a293a7e1
commit
c29e88175f
1 changed files with 2 additions and 2 deletions
|
@ -1221,8 +1221,8 @@ export function toggleFreedomMode() {
|
|||
}
|
||||
|
||||
export function setConfidenceMode(cm, nosave) {
|
||||
if (cm == undefined) {
|
||||
cm = "off";
|
||||
if (cm == undefined || !["off", "on", "max"].includes(cm)) {
|
||||
cm = defaultConfig.confidenceMode;
|
||||
}
|
||||
config.confidenceMode = cm;
|
||||
if (config.confidenceMode !== "off") {
|
||||
|
|
Loading…
Reference in a new issue