checking funbox when checking for pb

This commit is contained in:
Miodec 2021-07-08 22:19:34 +01:00
parent 3bd02d3292
commit 5306f82ec7

View file

@ -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,