mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-02 11:37:44 +08:00
checking funbox when checking for pb
This commit is contained in:
parent
3bd02d3292
commit
5306f82ec7
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue