From 118af854606048a84e6404031bca910ef601fd2d Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 17 Dec 2020 17:23:43 +0000 Subject: [PATCH] fixed graph wpm being sliiightly off --- src/js/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/script.js b/src/js/script.js index fdddc027c..e4a898457 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -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") {