diff --git a/frontend/src/scripts/controllers/input-controller.ts b/frontend/src/scripts/controllers/input-controller.ts index f8275aa59..46e032be7 100644 --- a/frontend/src/scripts/controllers/input-controller.ts +++ b/frontend/src/scripts/controllers/input-controller.ts @@ -475,6 +475,11 @@ function handleChar(char: string, charIndex: number): void { TestInput.input.current = resultingWord; } + Replay.addReplayEvent( + thisCharCorrect ? "correctLetter" : "incorrectLetter", + char + ); + if (!thisCharCorrect && Config.difficulty == "master") { TestInput.input.pushHistory(); TestInput.corrected.pushHistory(); @@ -486,11 +491,6 @@ function handleChar(char: string, charIndex: number): void { return; } - Replay.addReplayEvent( - thisCharCorrect ? "correctLetter" : "incorrectLetter", - char - ); - //update the active word top, but only once if ( TestInput.input.current.length === 1 &&