mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 21:33:40 +08:00
fixed graph wpm being sliiightly off
This commit is contained in:
parent
89d9305020
commit
118af85460
1 changed files with 2 additions and 2 deletions
|
@ -3096,13 +3096,13 @@ function liveWpmAndRaw() {
|
|||
//the word is correct
|
||||
//+1 for space
|
||||
correctWordChars += wordsList[i].length;
|
||||
if (i < inputHistory.length - 1) {
|
||||
if (i < inputHistory.length) {
|
||||
spaces++;
|
||||
}
|
||||
}
|
||||
chars += inputHistory[i].length;
|
||||
}
|
||||
if (wordsList[currentWordIndex] === currentInput) {
|
||||
if (wordsList[currentWordIndex] == currentInput) {
|
||||
correctWordChars += currentInput.length;
|
||||
}
|
||||
if (activeFunBox === "nospace") {
|
||||
|
|
Loading…
Reference in a new issue