diff --git a/utils/watch.js b/utils/watch.js index 236a6f5..02531d8 100644 --- a/utils/watch.js +++ b/utils/watch.js @@ -175,7 +175,7 @@ class Watch { } // End startAlertTimer if startAlert started timer with delay - if (this.#watchObjects[watchUUID].startAlertTimer.isActive()) { + if (this.#watchObjects[watchUUID].hasOwnProperty('startAlertTimer') && this.#watchObjects[watchUUID].startAlertTimer.isActive()) { console.log('Cancel startAlertTimer'); this.#watchObjects[watchUUID].startAlertTimer.cancel(); }