From 66ba7df2bfdb5e1dca39d773454c3b013d110518 Mon Sep 17 00:00:00 2001 From: jsun969 Date: Mon, 23 Sep 2024 21:43:22 +0930 Subject: [PATCH] chore: fixme comment for #6 --- src/helpers/calendar.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/helpers/calendar.ts b/src/helpers/calendar.ts index f0d1a33..662ed60 100644 --- a/src/helpers/calendar.ts +++ b/src/helpers/calendar.ts @@ -158,7 +158,7 @@ export const useOtherWeekCourseTimes = ({ courseId, classTypeId, currentWeek, - currentClassNumber, + // currentClassNumber, }: { courseId: string; classTypeId: string; @@ -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 = {