From d0f149d09dff5d2f5231b22373da4d37734fea2c Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Thu, 28 Sep 2023 20:01:29 -0700 Subject: [PATCH] Fix added pane bug --- .../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 ( - +