mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 18:03:47 +00:00
refactor: time-to-end always updates (#739)
This commit is contained in:
@@ -394,6 +394,10 @@ export const stateMutations = {
|
||||
const result = play();
|
||||
_shouldNotify = true;
|
||||
_isFinished = result.isFinished;
|
||||
} else if (state.eventNow?.timerType === TimerType.TimeToEnd) {
|
||||
// or if we are in a time-to-end timer
|
||||
state.timer.current = getCurrent(state);
|
||||
state.timer.duration = state.timer.current;
|
||||
}
|
||||
|
||||
// we only update the store at the updateInterval
|
||||
|
||||
Reference in New Issue
Block a user