mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 23:19:09 +00:00
fix: prevent calculation with no timer (#835)
This commit is contained in:
@@ -300,7 +300,7 @@ export const updateRoll = (state: RuntimeState) => {
|
|||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
export function getRuntimeOffset(state: RuntimeState): MaybeNumber {
|
export function getRuntimeOffset(state: RuntimeState): MaybeNumber {
|
||||||
if (state.runtime.actualStart === null) {
|
if (state.eventNow === null || state.runtime.actualStart === null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user