Skip to content

Commit

Permalink
fix: 🐛 Fix useContext statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Melagranata committed Feb 23, 2024
1 parent 8379312 commit 5fc1707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/calendar/CalendarSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function getCalendarSelections(requests: ReturnType<typeof useRequests>,
export const CalendarSelector: FunctionComponent<CalendarSelectorProps> = (props: CalendarSelectorProps) => {
const styles = useStyles();

const { course } = useContext(UserContext).course;
const course = useContext(UserContext).data?.course;
const requests = useRequests();

// The available calendar types
Expand Down

0 comments on commit 5fc1707

Please sign in to comment.