From 80553b5933fda3c9d41ec844a4adc53517790a40 Mon Sep 17 00:00:00 2001 From: Pankaj Date: Mon, 17 Aug 2026 20:38:36 +0530 Subject: [PATCH] fix: handle live stats during test restart --- frontend/src/ts/states/live-stats.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/ts/states/live-stats.ts b/frontend/src/ts/states/live-stats.ts index 37c218889a0b..2bf65106f1ed 100644 --- a/frontend/src/ts/states/live-stats.ts +++ b/frontend/src/ts/states/live-stats.ts @@ -13,6 +13,7 @@ import { getFocus, isResultCalculating, isTestActive, + isTestRestarting, } from "./test"; /** Whether this test counts down a time limit rather than a number of words. */ @@ -105,6 +106,7 @@ export const getLiveBurstText = createMemo(() => /** Countdown / word counter shown by the timer displays. */ export const getTimerText = createMemo(() => { + isTestRestarting(); if (isTimeLimitedTest()) { const limit = getTestTimeLimit(); const seconds = currentLiveStats.seconds ?? 0;