From 4ab277d69f9c546f352fd4942de9409dce08c043 Mon Sep 17 00:00:00 2001 From: Alex Mickelson Date: Tue, 10 Dec 2024 11:52:53 -0700 Subject: [PATCH] home page is semester-aware --- nextjs/src/app/CourseList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextjs/src/app/CourseList.tsx b/nextjs/src/app/CourseList.tsx index d74951f..aab5ee9 100644 --- a/nextjs/src/app/CourseList.tsx +++ b/nextjs/src/app/CourseList.tsx @@ -27,7 +27,7 @@ function groupByStartDate(courses: LocalCourseSettings[]): { } function getTermName(startDate: string) { - const [year, month, ...rest] = startDate.split("-"); + const [year, month, ..._rest] = startDate.split("-"); if (month < "04") return "Spring " + year; if (month < "07") return "Summer " + year; return "Fall " + year;