From 738b58b130137851e814e04391c84a5df8e3d710 Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Fri, 29 Sep 2023 16:13:56 -0700 Subject: [PATCH] Fix Added Pane Course Grouping (#711) --- .../components/RightPane/AddedCourses/AddedCoursePane.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/antalmanac/src/components/RightPane/AddedCourses/AddedCoursePane.tsx b/apps/antalmanac/src/components/RightPane/AddedCourses/AddedCoursePane.tsx index facdb8b14..0981b0d82 100644 --- a/apps/antalmanac/src/components/RightPane/AddedCourses/AddedCoursePane.tsx +++ b/apps/antalmanac/src/components/RightPane/AddedCourses/AddedCoursePane.tsx @@ -54,7 +54,9 @@ function getCourses() { for (const course of currentCourses) { let formattedCourse = formattedCourses.find( (needleCourse) => - needleCourse.courseNumber === course.courseNumber && needleCourse.deptCode === course.deptCode + needleCourse.courseNumber === course.courseNumber && + needleCourse.deptCode === course.deptCode && + needleCourse.courseTitle === course.courseTitle ); if (formattedCourse) { @@ -306,7 +308,7 @@ function AddedSectionsGrid() { {courses.map((course) => { return ( - +