diff --git a/backend/dao/user.js b/backend/dao/user.js index 2aaef624c..d9395512c 100644 --- a/backend/dao/user.js +++ b/backend/dao/user.js @@ -135,8 +135,13 @@ class UsersDAO { punctuation, rawWpm, wpm, + funbox, } = result; + if (funbox !== "none" && funbox !== "plus_one" && funbox !== "plus_two") { + return false; + } + let pb = checkAndUpdatePb( user.personalBests, mode,