From 5ff78619684d0e8458652af89c99e646694ba726 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Sun, 8 Mar 2026 00:23:20 +0100 Subject: [PATCH] fix: use rundown day for calculations --- apps/client/src/common/hooks/useSocket.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/client/src/common/hooks/useSocket.ts b/apps/client/src/common/hooks/useSocket.ts index 206916b57..a2413eaf5 100644 --- a/apps/client/src/common/hooks/useSocket.ts +++ b/apps/client/src/common/hooks/useSocket.ts @@ -202,19 +202,19 @@ export const useGroupTimerOverView = createSelector((state: RuntimeStore) => ({ clock: state.clock, mode: state.offset.mode, groupExpectedEnd: state.offset.expectedGroupEnd, - // we can force these numbers to 0 fo this use case to avoid null checks + // we can force these numbers to 0 for this use case to avoid null checks actualGroupStart: state.rundown.actualGroupStart ?? 0, - currentDay: state.eventNow?.dayOffset ?? 0, + currentDay: state.rundown.currentDay ?? 0, playback: state.timer.playback, })); export const useFlagTimerOverView = createSelector((state: RuntimeStore) => ({ clock: state.clock, mode: state.offset.mode, - // we can force these numbers to 0 fo this use case to avoid null checks + // we can force these numbers to 0 for this use case to avoid null checks actualStart: state.rundown.actualStart ?? 0, plannedStart: state.rundown.plannedStart ?? 0, - currentDay: state.eventNow?.dayOffset ?? 0, + currentDay: state.rundown.currentDay ?? 0, playback: state.timer.playback, }));