mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-05 04:56:48 +08:00
fix(result page): last word in words mode missing input history
This commit is contained in:
parent
5d83198ee2
commit
ab729e61f1
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue