missing replay event

This commit is contained in:
Miodec 2022-03-03 00:16:25 +01:00
parent 7f428db379
commit e780914ed2

View file

@ -466,6 +466,11 @@ function handleChar(char: string, charIndex: number): void {
TestInput.updateLastKeypress();
TestInput.pushKeypressWord(TestWords.words.currentIndex);
Replay.addReplayEvent(
thisCharCorrect ? "correctLetter" : "incorrectLetter",
char
);
if (!thisCharCorrect && Config.difficulty == "master") {
TestInput.input.pushHistory();
TestInput.corrected.pushHistory();