refactor: improve pending detection

This commit is contained in:
Carlos Valente
2024-07-16 20:41:15 +02:00
committed by Carlos Valente
parent 2f65711078
commit cb773ded9f
+1 -1
View File
@@ -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;
}