refactor: offset cannot be null

This commit is contained in:
Carlos Valente
2024-07-07 20:26:41 +02:00
committed by Carlos Valente
parent e90e94828d
commit 938c5fbb4c
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ import { timerConfig } from '../config/config.js';
const initialRuntime: Runtime = {
selectedEventIndex: null,
numEvents: 0,
offset: null,
offset: 0,
plannedStart: 0,
plannedEnd: 0,
actualStart: null,
@@ -82,7 +82,7 @@ export function clear() {
runtimeState.eventNext = null;
runtimeState.publicEventNext = null;
runtimeState.runtime.offset = null;
runtimeState.runtime.offset = 0;
runtimeState.runtime.actualStart = null;
runtimeState.runtime.expectedEnd = null;
runtimeState.runtime.selectedEventIndex = null;