fix(typing): allow repeated quote tests to be saved (again)

This commit is contained in:
Miodec 2024-04-09 01:03:25 +02:00
parent 1d79d87d89
commit f2714c0a43

View file

@ -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();