mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-25 00:49:10 +00:00
fix: use rundown day for calculations
This commit is contained in:
committed by
Carlos Valente
parent
f1a1c358bc
commit
5ff7861968
@@ -202,19 +202,19 @@ export const useGroupTimerOverView = createSelector((state: RuntimeStore) => ({
|
|||||||
clock: state.clock,
|
clock: state.clock,
|
||||||
mode: state.offset.mode,
|
mode: state.offset.mode,
|
||||||
groupExpectedEnd: state.offset.expectedGroupEnd,
|
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,
|
actualGroupStart: state.rundown.actualGroupStart ?? 0,
|
||||||
currentDay: state.eventNow?.dayOffset ?? 0,
|
currentDay: state.rundown.currentDay ?? 0,
|
||||||
playback: state.timer.playback,
|
playback: state.timer.playback,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export const useFlagTimerOverView = createSelector((state: RuntimeStore) => ({
|
export const useFlagTimerOverView = createSelector((state: RuntimeStore) => ({
|
||||||
clock: state.clock,
|
clock: state.clock,
|
||||||
mode: state.offset.mode,
|
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,
|
actualStart: state.rundown.actualStart ?? 0,
|
||||||
plannedStart: state.rundown.plannedStart ?? 0,
|
plannedStart: state.rundown.plannedStart ?? 0,
|
||||||
currentDay: state.eventNow?.dayOffset ?? 0,
|
currentDay: state.rundown.currentDay ?? 0,
|
||||||
playback: state.timer.playback,
|
playback: state.timer.playback,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user