mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 08:53:51 +00:00
refactor: improve pending detection
This commit is contained in:
committed by
Carlos Valente
parent
2f65711078
commit
cb773ded9f
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user