From 728b3a4c92e0e1e53fd8656eaa356914aba13b5d Mon Sep 17 00:00:00 2001 From: Christian Weimann Date: Sun, 13 Aug 2023 15:32:42 +0200 Subject: [PATCH] Check if startAlertTimer property is set --- utils/watch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }