Skip to content

Commit

Permalink
fixed private/public course bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwaqaljanahi2021 committed Nov 6, 2024
1 parent c973ff5 commit 7428799
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 4 additions & 2 deletions devU-client/src/components/listItems/courseListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ const CourseListItem = ({course, isOpen}: Props) => {
setIsOpen(isOpen);
}, [isOpen]);


if (!course || !course.isPublic) {
return null;
}

return (
<div className={styles.courseContainer} onClick={toggleOpen}>
Expand Down Expand Up @@ -70,4 +72,4 @@ const infoSection = (display: string, firstValue: string, secondValue?: string)
)


export default CourseListItem
export default CourseListItem

0 comments on commit 7428799

Please sign in to comment.