fixed graph wpm being sliiightly off

This commit is contained in:
Jack 2020-12-17 17:23:43 +00:00
parent 89d9305020
commit 118af85460

View file

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