Skip to content

Commit ab729e6

Browse files
committed
fix(result page): last word in words mode missing input history
1 parent 5d83198 commit ab729e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/ts/controllers/input-controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ async function handleSpace(): Promise<void> {
286286
}
287287
}
288288

289+
TestInput.corrected.pushHistory();
290+
289291
const isLastWord = TestWords.words.currentIndex === TestWords.words.length;
290292
if (TestLogic.areAllTestWordsGenerated() && isLastWord) {
291293
void TestLogic.finish();
@@ -308,8 +310,6 @@ async function handleSpace(): Promise<void> {
308310
return;
309311
}
310312

311-
TestInput.corrected.pushHistory();
312-
313313
if (Config.keymapMode === "react") {
314314
void KeymapEvent.flash(" ", true);
315315
}

0 commit comments

Comments
 (0)