Skip to content

Commit

Permalink
fix(course section): bug fix for competency search
Browse files Browse the repository at this point in the history
  • Loading branch information
VamshiBatta07 committed Apr 9, 2024
1 parent 286aacd commit aa7084f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/3cp/CourseSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ const CourseSection = ({
const inputCourseLower = input?.course?.toLowerCase();
const competencyMatch =
input?.competency === '' ||
course?.competency[input.competency]?.length > 0;
course?.competency.filter((item) => {
item.name === input.competency;
}).length > 0;

const languageMatch =
input?.language === '' || course?.language?.includes(input.language);
Expand Down

0 comments on commit aa7084f

Please sign in to comment.