mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
corrected the nospace wpm calculation
This commit is contained in:
parent
62e5773186
commit
e3abc6e3c4
2 changed files with 8 additions and 4 deletions
|
@ -946,10 +946,10 @@ exports.testCompleted = functions.https.onRequest(async (request, response) => {
|
|||
return user.emailVerified;
|
||||
});
|
||||
|
||||
if (obj.funbox === "nospace") {
|
||||
response.status(200).send({ data: { resultCode: -1 } });
|
||||
return;
|
||||
}
|
||||
// if (obj.funbox === "nospace") {
|
||||
// response.status(200).send({ data: { resultCode: -1 } });
|
||||
// return;
|
||||
// }
|
||||
|
||||
return db
|
||||
.collection("users")
|
||||
|
|
|
@ -1621,6 +1621,10 @@ function countChars() {
|
|||
spaces++;
|
||||
}
|
||||
}
|
||||
if (activeFunBox === "nospace") {
|
||||
spaces = 0;
|
||||
correctspaces = 0;
|
||||
}
|
||||
return {
|
||||
spaces: spaces,
|
||||
correctWordChars: correctWordChars,
|
||||
|
|
Loading…
Reference in a new issue