diff --git a/src/views/Event/EventView.vue b/src/views/Event/EventView.vue index 4e7dc1769..8031a569a 100755 --- a/src/views/Event/EventView.vue +++ b/src/views/Event/EventView.vue @@ -621,12 +621,12 @@ const organizerDomain = computed((): string | undefined => { }); const filterNonPassedRelatedEvents = (relatedEvents: IEvent[] | undefined) => { - console.log(relatedEvents); - return relatedEvents?.filter((relatedEvent) => { - let endsOn = relatedEvent.endsOn ? new Date(relatedEvent.endsOn) : new Date(relatedEvent.beginsOn); - console.log(endsOn); - return endsOn > new Date(); - }) + return relatedEvents?.filter((relatedEvent) => { + const endsOn = relatedEvent.endsOn + ? new Date(relatedEvent.endsOn) + : new Date(relatedEvent.beginsOn); + return endsOn > new Date(); + }); }; const nonPassedRelatedEvents = computed((): IEvent[] | undefined => {