fix: prevent calculation with no timer (#835)

This commit is contained in:
Carlos Valente
2024-03-20 12:52:32 +01:00
committed by GitHub
parent 1568af97fc
commit 93622e9aeb
+1 -1
View File
@@ -300,7 +300,7 @@ export const updateRoll = (state: RuntimeState) => {
* @returns
*/
export function getRuntimeOffset(state: RuntimeState): MaybeNumber {
if (state.runtime.actualStart === null) {
if (state.eventNow === null || state.runtime.actualStart === null) {
return null;
}