Skip to content

Commit

Permalink
fix(typing): allow repeated quote tests to be saved (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Apr 8, 2024
1 parent 1d79d87 commit f2714c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/ts/test/test-logic.ts
Expand Up @@ -831,6 +831,10 @@ export async function finish(difficultyFailed = false): Promise<void> {
const now = performance.now();
TestStats.setEnd(now);

if (TestState.isRepeated && Config.mode === "quote") {
TestState.setRepeated(false);
}

await Misc.sleep(1); //this is needed to make sure the last keypress is registered
if (TestInput.input.current.length !== 0) {
TestInput.input.pushHistory();
Expand Down

0 comments on commit f2714c0

Please sign in to comment.