Update src/components/content/courses/tabs/CourseOverview.js

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Austin Kelsay 2025-05-12 09:30:21 -05:00 committed by GitHub
parent cfefabfcdf
commit cfac21a666
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ const CourseOverview = ({
completedLessons
}) => {
// Determine if course is completed
const isCompleted = completedLessons.length > 0;
const isCompleted = lessons && lessons.length > 0 && completedLessons.length === lessons.length;
return (
<div className={`bg-gray-800 rounded-lg border border-gray-800 shadow-md ${isMobileView ? 'p-4' : 'p-6'}`}>