fix: reset timers

reset timers correctly when current event is deleted
This commit is contained in:
cv
2021-10-28 15:27:23 +02:00
parent e1f9d322da
commit 1305fad6b5
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -120,6 +120,7 @@ export class Timer {
_resetTimers(total = false) {
if (total) this.duration = null;
this.current = this.duration;
this.running = null;
this.secondaryTimer = null;
this._finishAt = null;
this._finishedAt = null;