diff --git a/frontend/src/ts/test/test-logic.ts b/frontend/src/ts/test/test-logic.ts index 9a3047c1d2a8..2e1d13b9d1ca 100644 --- a/frontend/src/ts/test/test-logic.ts +++ b/frontend/src/ts/test/test-logic.ts @@ -1323,7 +1323,8 @@ export function fail(reason: string): void { TestInput.pushErrorToHistory(); TestInput.pushAfkToHistory(); void finish(true); - if (!Config.resultSaving) return; + // When the test is repeated we already do the rest of the code in this function in finish. + if (!Config.resultSaving || TestState.isRepeated) return; const testSeconds = TestStats.calculateTestSeconds(performance.now()); const afkseconds = TestStats.calculateAfkSeconds(testSeconds); let tt = Numbers.roundTo2(testSeconds - afkseconds);