From 24929720970c9b360a06b8b30773cb264f89ed17 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Wed, 4 Sep 2024 08:43:00 +0200 Subject: [PATCH] fix: incorrect falsy check --- apps/server/src/stores/runtimeState.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/stores/runtimeState.ts b/apps/server/src/stores/runtimeState.ts index bd748a3f9..5604756f2 100644 --- a/apps/server/src/stores/runtimeState.ts +++ b/apps/server/src/stores/runtimeState.ts @@ -495,7 +495,7 @@ export function update(): UpdateResult { // eslint-disable-next-line no-unused-labels -- dev code path DEV: { - if (!runtimeState.timer.duration) { + if (runtimeState.timer.duration === null) { throw new Error('runtimeState.update: invalid state received'); } }