mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-01 14:52: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
|
completedLessons
|
||||||
}) => {
|
}) => {
|
||||||
// Determine if course is completed
|
// Determine if course is completed
|
||||||
const isCompleted = completedLessons.length > 0;
|
const isCompleted = lessons && lessons.length > 0 && completedLessons.length === lessons.length;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={`bg-gray-800 rounded-lg border border-gray-800 shadow-md ${isMobileView ? 'p-4' : 'p-6'}`}>
|
<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