made sure live wpm calculation is also adjusted

This commit is contained in:
Jack 2020-07-22 17:13:06 +01:00
parent 491a6b67f9
commit 873136659e

View file

@ -1812,9 +1812,9 @@ function liveWpmAndRaw() {
//the word is correct
//+1 for space
correctWordChars += wordsList[i].length;
}
if (i < inputHistory.length - 1) {
spaces++;
if (i < inputHistory.length - 1) {
spaces++;
}
}
chars += inputHistory[i].length;
}