forked from potsda.mn/mobilizon
remove unnecessary logging
This commit is contained in:
parent
257da414bf
commit
599c4ce0f5
|
@ -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 => {
|
||||
|
|
Loading…
Reference in a new issue