Skip to content

Commit

Permalink
Merge pull request #634 from MicahBCode/fix-passed-events-marked-active
Browse files Browse the repository at this point in the history
fix(events): Remove event from list if passed
  • Loading branch information
daniluk4000 authored Jan 11, 2025
2 parents de47693 + 250094a commit 2af9b80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/events.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const groupedEventData = computed(() => {
const events: Record<number, VatsimEvent[]> = {};
data.value?.events.forEach(event => {
if (new Date(event.end_time) < new Date()) return;
const date = new Date(event.start_time);
const key = parseInt(date.getFullYear().toString() + `0${ date.getMonth() }`.slice(-2) + `0${ date.getDate() }`.slice(-2));
Expand Down

0 comments on commit 2af9b80

Please sign in to comment.