Skip to content

Commit

Permalink
fix: remove dupe code (#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 authored Feb 5, 2024
1 parent acf6c9e commit 2454ddf
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions apps/antalmanac/src/components/Map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2454ddf

Please sign in to comment.