From cb773ded9f7e877f2ce00884d001f59d6b06ff7c Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Tue, 16 Jul 2024 20:41:15 +0200 Subject: [PATCH] refactor: improve pending detection --- apps/server/src/services/timerUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/services/timerUtils.ts b/apps/server/src/services/timerUtils.ts index f746778e7..45898f502 100644 --- a/apps/server/src/services/timerUtils.ts +++ b/apps/server/src/services/timerUtils.ts @@ -386,7 +386,7 @@ export function getTimerPhase(state: RuntimeState): TimerPhase { const current = state.timer.current; - if (current === null || state.eventNow === null) { + if (current === null || state.eventNow === null || state.timer.secondaryTimer != null) { return TimerPhase.Pending; }