Skip to content

Commit

Permalink
Fix Added Pane Course Grouping (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 authored Sep 29, 2023
1 parent d7a73f0 commit 738b58b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -306,7 +308,7 @@ function AddedSectionsGrid() {
<Grid container spacing={2} padding={0}>
{courses.map((course) => {
return (
<Grid item md={12} xs={12} key={course.deptCode + course.courseNumber}>
<Grid item md={12} xs={12} key={course.deptCode + course.courseNumber + course.courseTitle}>
<SectionTableLazyWrapper
courseDetails={course}
term={course.term}
Expand Down

0 comments on commit 738b58b

Please sign in to comment.