Skip to content

Commit

Permalink
make sure course subject is checked when validating a completed cours…
Browse files Browse the repository at this point in the history
…e in sidebar
  • Loading branch information
23langloisj committed Dec 4, 2024
1 parent 3d8f115 commit b3d2a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/components/Sidebar/SectionRequirement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ const SectionRequirement: React.FC<SidebarRequirementProps> = ({
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;
}
});
Expand Down

0 comments on commit b3d2a1f

Please sign in to comment.