Skip to content

Commit

Permalink
Use start variable for return
Browse files Browse the repository at this point in the history
Co-authored-by: Björn Ricks <[email protected]>
  • Loading branch information
mattmundell and bjoernricks authored Jul 31, 2023
1 parent 1828b7a commit 7e8a12d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gmp/models/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ class Event {
const start = convertIcalDate(this.event.startDate, this.timezone);

if (start.unix() >= now.unix()) {
return convertIcalDate(this.event.startDate, this.timezone);
return start;
}
}
return undefined;
Expand Down

0 comments on commit 7e8a12d

Please sign in to comment.