mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 04:19:06 +08:00
fixed bug where last incorrect words would could towards correct chars
This commit is contained in:
parent
b1a355c2ee
commit
58b91ddd12
1 changed files with 1 additions and 1 deletions
|
@ -1537,7 +1537,7 @@ function countChars() {
|
|||
incorrectChars += toAdd.incorrect;
|
||||
if (i === inputHistory.length - 1 && config.mode == "time") {
|
||||
//last word - check if it was all correct - add to correct word chars
|
||||
correctWordChars += toAdd.correct;
|
||||
if(toAdd.incorrect === 0) correctWordChars += toAdd.correct;
|
||||
} else {
|
||||
missedChars += toAdd.missed;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue