corrected the nospace wpm calculation

This commit is contained in:
Jack 2020-12-07 17:26:19 +00:00
parent 62e5773186
commit e3abc6e3c4
2 changed files with 8 additions and 4 deletions

View file

@ -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")

View file

@ -1621,6 +1621,10 @@ function countChars() {
spaces++;
}
}
if (activeFunBox === "nospace") {
spaces = 0;
correctspaces = 0;
}
return {
spaces: spaces,
correctWordChars: correctWordChars,