mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-11 10:23:54 +00:00
fix: incorrect falsy check
This commit is contained in:
committed by
Carlos Valente
parent
aa4ee546ec
commit
2492972097
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user