From 2336174e9317b0a36a5bce59b07fbc989927786e Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Thu, 7 Nov 2024 20:32:39 +0600 Subject: [PATCH] fix: lesson complete guard issue --- src/components/Course/CourseView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Course/CourseView.tsx b/src/components/Course/CourseView.tsx index 9758bc6a7..3b9791b4f 100644 --- a/src/components/Course/CourseView.tsx +++ b/src/components/Course/CourseView.tsx @@ -25,8 +25,9 @@ type CourseViewProps = Omit & { }; export function CourseView(props: CourseViewProps) { - const { lesson, children, ...courseLayoutProps } = props; + const { children, ...courseLayoutProps } = props; + const { lesson } = courseLayoutProps; const { frontmatter } = lesson; const lessonType = frontmatter.type;