mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-26 09:29:10 +00:00
refactor: time-to-end always updates (#739)
This commit is contained in:
@@ -394,6 +394,10 @@ export const stateMutations = {
|
|||||||
const result = play();
|
const result = play();
|
||||||
_shouldNotify = true;
|
_shouldNotify = true;
|
||||||
_isFinished = result.isFinished;
|
_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
|
// we only update the store at the updateInterval
|
||||||
|
|||||||
Reference in New Issue
Block a user