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) => {
|
const filterNonPassedRelatedEvents = (relatedEvents: IEvent[] | undefined) => {
|
||||||
console.log(relatedEvents);
|
return relatedEvents?.filter((relatedEvent) => {
|
||||||
return relatedEvents?.filter((relatedEvent) => {
|
const endsOn = relatedEvent.endsOn
|
||||||
let endsOn = relatedEvent.endsOn ? new Date(relatedEvent.endsOn) : new Date(relatedEvent.beginsOn);
|
? new Date(relatedEvent.endsOn)
|
||||||
console.log(endsOn);
|
: new Date(relatedEvent.beginsOn);
|
||||||
return endsOn > new Date();
|
return endsOn > new Date();
|
||||||
})
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const nonPassedRelatedEvents = computed((): IEvent[] | undefined => {
|
const nonPassedRelatedEvents = computed((): IEvent[] | undefined => {
|
||||||
|
|
Loading…
Reference in a new issue