Skip to content

Commit

Permalink
hotfix/0.8.1 prevent issue with falsy value (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpvalente authored Apr 12, 2022
1 parent dd1b9bd commit 82d0508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/classes/EventTimer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 82d0508

Please sign in to comment.