mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-05-31 06:12:02 +00:00
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:
parent
cfefabfcdf
commit
cfac21a666
@ -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'}`}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user