mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-02 12:59:09 +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
|
// eslint-disable-next-line no-unused-labels -- dev code path
|
||||||
DEV: {
|
DEV: {
|
||||||
if (!runtimeState.timer.duration) {
|
if (runtimeState.timer.duration === null) {
|
||||||
throw new Error('runtimeState.update: invalid state received');
|
throw new Error('runtimeState.update: invalid state received');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user