fixed indicate typos replace causing funky behaviour with stop on error

This commit is contained in:
Miodec 2022-02-11 01:56:35 +01:00
parent aab8792cee
commit 7ddd3c216e

View file

@ -452,7 +452,11 @@ export function updateWordElement(showError = !Config.blindMode) {
? wordHighlightClassString
: "incorrect"
} ${tabChar}${nlChar}">` +
(Config.indicateTypos === "replace" ? input[i] : currentLetter) +
(Config.indicateTypos === "replace"
? input[i] == " "
? "_"
: input[i]
: currentLetter) +
(Config.indicateTypos === "below" ? `<hint>${input[i]}</hint>` : "") +
"</letter>";
}