diff --git a/apps/web/src/app/main/courses/components/CourseCard.tsx b/apps/web/src/app/main/courses/components/CourseCard.tsx index c860934..16b7a2b 100755 --- a/apps/web/src/app/main/courses/components/CourseCard.tsx +++ b/apps/web/src/app/main/courses/components/CourseCard.tsx @@ -41,7 +41,7 @@ export default function CourseCard({ course }: CourseCardProps) { }>
- {course.terms.map((term) => { + {course?.terms?.map((term) => { return (
- {(course.depts.map((depts)=>depts.name))} + {(course?.depts?.map((depts)=>depts.name))} {/* {course?.depts?.[0]?.name} */}
diff --git a/apps/web/src/app/main/home/components/CoursesSection.tsx b/apps/web/src/app/main/home/components/CoursesSection.tsx index fc00aef..61948a1 100755 --- a/apps/web/src/app/main/home/components/CoursesSection.tsx +++ b/apps/web/src/app/main/home/components/CoursesSection.tsx @@ -123,8 +123,8 @@ const CoursesSection: React.FC = ({ {isDataLoading ? ( ) : ( - displayedCourses?.map((course) => ( - + displayedCourses?.map((course,index) => ( + )) )}