From b3d2a1f077de529bce08f68a13330a5865f8167f Mon Sep 17 00:00:00 2001 From: Jake Langlois Date: Tue, 3 Dec 2024 20:02:09 -0500 Subject: [PATCH] make sure course subject is checked when validating a completed course in sidebar --- packages/frontend/components/Sidebar/SectionRequirement.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/components/Sidebar/SectionRequirement.tsx b/packages/frontend/components/Sidebar/SectionRequirement.tsx index ff71fd6c..b7976077 100644 --- a/packages/frontend/components/Sidebar/SectionRequirement.tsx +++ b/packages/frontend/components/Sidebar/SectionRequirement.tsx @@ -55,9 +55,9 @@ const SectionRequirement: React.FC = ({ coursesTaken.forEach((course) => { if ( requirement.type === "COURSE" && - course.classId === requirement.classId.toString() + course.classId === requirement.classId.toString() && + course.subject === requirement.subject ) { - console.log("This is true"); isTrue = true; } });