fixed corrected showing up when not supposed to

This commit is contained in:
Jack 2020-08-07 00:47:42 +01:00
parent 71f5b6dd1b
commit 4c902e068b

View file

@ -2559,7 +2559,7 @@ async function loadWordsHistory() {
}
if (wordsList[index][c] !== undefined) {
if (input[c] === wordsList[index][c]) {
if (correctedChar === input[c]) {
if (correctedChar === input[c] || correctedChar === undefined) {
wordEl +=
'<letter class="correct">' + wordsList[index][c] + "</letter>";
} else {