1
0

Check if startAlertTimer property is set

This commit is contained in:
2023-08-13 15:32:42 +02:00
parent ac06811a93
commit 728b3a4c92

View File

@@ -175,7 +175,7 @@ class Watch {
} }
// End startAlertTimer if startAlert started timer with delay // 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'); console.log('Cancel startAlertTimer');
this.#watchObjects[watchUUID].startAlertTimer.cancel(); this.#watchObjects[watchUUID].startAlertTimer.cancel();
} }