mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
prettier verison of previous commit
This commit is contained in:
parent
c9423238bd
commit
efd8283467
1 changed files with 1 additions and 5 deletions
|
@ -866,11 +866,7 @@ function validateResult(result) {
|
|||
}
|
||||
}
|
||||
|
||||
let wpmbad = false;
|
||||
result.wpm.forEach((w) => {
|
||||
if (w > 400) wpmbad = true;
|
||||
});
|
||||
if (wpmbad) return false;
|
||||
if (result.wpm.filter((w) => w > 400).length > 0) return false;
|
||||
|
||||
if (result.consistency < 25) return false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue