Skip to content

Commit

Permalink
chore: fixme comment for #6
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun969 committed Sep 23, 2024
1 parent 1cfc5db commit 66ba7df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/helpers/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const useOtherWeekCourseTimes = ({
courseId,
classTypeId,
currentWeek,
currentClassNumber,
// currentClassNumber,
}: {
courseId: string;
classTypeId: string;
Expand All @@ -170,7 +170,8 @@ export const useOtherWeekCourseTimes = ({
const times: OtherWeekCoursesTimes = [[], [], [], [], []];
classes.forEach((cl) => {
cl.meetings.forEach((m) => {
if (cl.number === currentClassNumber) return;
// FIXME: Sometimes this will hide the wrong class #6
// if (cl.number === currentClassNumber) return;
const isMeetingInWeek = checkDateRangeInWeek(currentWeek, m.date);
if (!isMeetingInWeek) return;
const time: OtherWeekCourseTime = {
Expand Down

0 comments on commit 66ba7df

Please sign in to comment.