Skip to content

Commit 7a7c8e6

Browse files
committed
add: event timeline fix
1 parent 74ed895 commit 7a7c8e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logic/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const DATE_FORMAT = 'DD MMM, YYYY hh:mm A'
66
export const getEvents = async(): Promise<any> => {
77
const { data } = await axios.get(`https://www.googleapis.com/calendar/v3/calendars/5rbvb4k7c10ujfrpeboh5je074@group.calendar.google.com/events?key=${import.meta.env.VITE_CALENDAR_KEY}`)
88
const { items } = data;
9-
return items.filter((i: any) => dayjs(i.end.dateTime).isAfter(dayjs()))
9+
return items.filter((i: any) => dayjs(i.end.dateTime).isAfter(dayjs()) && !i.recurrence)
1010
}
1111

1212
export const formatDateTime = (dateTime: string): string => {

0 commit comments

Comments
 (0)