fix: roll resets day

This commit is contained in:
Carlos Valente
2026-03-07 01:28:02 +01:00
committed by Carlos Valente
parent a29a493678
commit efd19353e9
2 changed files with 193 additions and 0 deletions
+7
View File
@@ -751,6 +751,13 @@ export function roll(
// preload timer properties
runtimeState.timer.duration = calculateDuration(runtimeState.eventNow.timeStart, runtimeState.eventNow.timeEnd);
runtimeState.timer.current = runtimeState.timer.duration;
// reset rundown state - the rundown will start fresh when the event begins
runtimeState.rundown.actualStart = null;
runtimeState.rundown.currentDay = null;
runtimeState._startDayOffset = null;
runtimeState._startEpoch = null;
return { eventId: runtimeState.eventNow.id, didStart: false };
}