fixed last word incorrect visual bug

This commit is contained in:
Jack 2020-10-15 17:35:09 +01:00
parent adbe157867
commit b1a355c2ee

View file

@ -3165,10 +3165,12 @@ async function loadWordsHistory() {
}
}
if (word.incorrect !== 0 || config.mode !== "time") {
wordEl = `<div class='word error' input="${input.replace(
/"/g,
"&quot;"
)}">`;
if (input !== wordsList[i]) {
wordEl = `<div class='word error' input="${input.replace(
/"/g,
"&quot;"
)}">`;
}
}
} else {
if (input !== wordsList[i]) {