aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMiodec <[email protected]>2024-10-21 12:39:28 +0200
committerMiodec <[email protected]>2024-10-21 12:47:09 +0200
commitab729e61f14aaa9d3df68c94bb8546559580f2c2 (patch)
treeb8b1369d2a90b4190a24487d8ab5a733cb901068
parent5d83198ee2fcb265d6aeeacb77217e308a5da543 (diff)
downloadmonkeytype-ab729e61f14aaa9d3df68c94bb8546559580f2c2.tar.gz
monkeytype-ab729e61f14aaa9d3df68c94bb8546559580f2c2.zip
fix(result page): last word in words mode missing input history
-rw-r--r--frontend/src/ts/controllers/input-controller.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/ts/controllers/input-controller.ts b/frontend/src/ts/controllers/input-controller.ts
index e9bd04545..f71cad6ed 100644
--- a/frontend/src/ts/controllers/input-controller.ts
+++ b/frontend/src/ts/controllers/input-controller.ts
@@ -286,6 +286,8 @@ async function handleSpace(): Promise<void> {
}
}
+ TestInput.corrected.pushHistory();
+
const isLastWord = TestWords.words.currentIndex === TestWords.words.length;
if (TestLogic.areAllTestWordsGenerated() && isLastWord) {
void TestLogic.finish();
@@ -308,8 +310,6 @@ async function handleSpace(): Promise<void> {
return;
}
- TestInput.corrected.pushHistory();
-
if (Config.keymapMode === "react") {
void KeymapEvent.flash(" ", true);
}