From c28593142eca6fd832fca908ea3a23a1e9b74fe5 Mon Sep 17 00:00:00 2001 From: Arik Chakma <arikchangma@gmail.com> Date: Sat, 12 Apr 2025 01:32:57 +0600 Subject: [PATCH] fix: next lesson --- src/components/GenerateCourse/AICourseLesson.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/GenerateCourse/AICourseLesson.tsx b/src/components/GenerateCourse/AICourseLesson.tsx index 9ef6e0a49..28c053521 100644 --- a/src/components/GenerateCourse/AICourseLesson.tsx +++ b/src/components/GenerateCourse/AICourseLesson.tsx @@ -477,6 +477,11 @@ export function AICourseLesson(props: AICourseLessonProps) { <div> <button onClick={() => { + if (!isLoggedIn()) { + onGoToNextLesson(); + return; + } + if (!isLessonDone) { toggleDone(undefined, { onSuccess: () => {