fix: lesson complete guard issue

feat/course
Arik Chakma 2 months ago
parent 927c5c6ff0
commit 2336174e93
  1. 3
      src/components/Course/CourseView.tsx

@ -25,8 +25,9 @@ type CourseViewProps = Omit<CourseLayoutProps, 'children'> & {
};
export function CourseView(props: CourseViewProps) {
const { lesson, children, ...courseLayoutProps } = props;
const { children, ...courseLayoutProps } = props;
const { lesson } = courseLayoutProps;
const { frontmatter } = lesson;
const lessonType = frontmatter.type;

Loading…
Cancel
Save