From dc0375865dd3b6d1d03932246b5201e05b367303 Mon Sep 17 00:00:00 2001 From: Minh Nguyen <64875104+MinhxNguyen7@users.noreply.github.com> Date: Wed, 31 Jan 2024 21:42:03 +0000 Subject: [PATCH] Revert erroneous merge resolution --- apps/antalmanac/src/components/Map/Map.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/apps/antalmanac/src/components/Map/Map.tsx b/apps/antalmanac/src/components/Map/Map.tsx index ee0abba7d..43fb40963 100644 --- a/apps/antalmanac/src/components/Map/Map.tsx +++ b/apps/antalmanac/src/components/Map/Map.tsx @@ -171,16 +171,15 @@ export default function CourseMap() { }, []); useEffect(() => { - const updateCustomEventMarkers = () => { - setCustomEventMarkers(getCustomEventPerBuilding()); + const updateCalendarEvents = () => { + setCalendarEvents(AppStore.getCourseEventsInCalendar()); }; - AppStore.on('customEventsChange', updateCustomEventMarkers); - AppStore.on('currentScheduleIndexChange', updateCustomEventMarkers); + AppStore.on('addedCoursesChange', updateCalendarEvents); + AppStore.on('currentScheduleIndexChange', updateCalendarEvents); return () => { - AppStore.removeListener('customEventsChange', updateCustomEventMarkers); - AppStore.removeListener('currentScheduleIndexChange', updateCustomEventMarkers); + AppStore.removeListener('addedCoursesChange', updateCalendarEvents); }; }, []);