Check if startAlertTimer property is set
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user