hotfix/0.8.1 prevent issue with falsy value (#107)

This commit is contained in:
Carlos Valente
2022-04-12 19:46:01 +02:00
committed by GitHub
parent dd1b9bd38c
commit 82d0508672
+1 -1
View File
@@ -1304,7 +1304,7 @@ export class EventTimer extends Timer {
if (this.selectedEventIndex === this.numEvents - 1) return;
// if there is no event running, go to first
if (!this.selectedEventIndex) {
if (this.selectedEventIndex === null) {
this.loadEvent(0);
} else {
const gotoEvent =