refactor: show next when waiting to roll

This commit is contained in:
Carlos Valente
2024-06-07 20:57:49 +02:00
committed by Carlos Valente
parent add769fe1e
commit 4bf2422ebc
3 changed files with 77 additions and 7 deletions
+4
View File
@@ -466,6 +466,10 @@ export function roll(rundown: OntimeEvent[]) {
current: endTime - runtimeState.clock,
});
} else if (nextEvent) {
if (nextEvent.isPublic) {
runtimeState.publicEventNext = nextEvent;
}
runtimeState.eventNext = nextEvent;
// account for day after
const nextStart = nextEvent.timeStart < runtimeState.clock ? nextEvent.timeStart + dayInMs : nextEvent.timeStart;
// nothing now, but something coming up