diff --git a/apps/antalmanac/src/components/Map/Map.tsx b/apps/antalmanac/src/components/Map/Map.tsx index f54462b0e..58c93c8a1 100644 --- a/apps/antalmanac/src/components/Map/Map.tsx +++ b/apps/antalmanac/src/components/Map/Map.tsx @@ -183,20 +183,6 @@ export default function CourseMap() { }; }, []); - useEffect(() => { - const updateCustomEventMarkers = () => { - setCustomEventMarkers(getCustomEventPerBuilding()); - }; - - AppStore.on('customEventsChange', updateCustomEventMarkers); - AppStore.on('currentScheduleIndexChange', updateCustomEventMarkers); - - return () => { - AppStore.removeListener('customEventsChange', updateCustomEventMarkers); - AppStore.removeListener('currentScheduleIndexChange', updateCustomEventMarkers); - }; - }, []); - useEffect(() => { const locationID = Number(searchParams.get('location') ?? 0); const building = locationID in buildingCatalogue ? buildingCatalogue[locationID] : undefined;