From 090d43199f464b1353cd2c3e39564e655e03e58b Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Fri, 10 Jan 2025 14:24:43 +0600 Subject: [PATCH] fix: start learning --- src/components/CourseLanding/EnrollButton.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/CourseLanding/EnrollButton.tsx b/src/components/CourseLanding/EnrollButton.tsx index 5b11db148..aa57f393e 100644 --- a/src/components/CourseLanding/EnrollButton.tsx +++ b/src/components/CourseLanding/EnrollButton.tsx @@ -66,6 +66,8 @@ export function EnrollButton(props: EnrollButtonProps) { ); const hasEnrolled = !!courseProgress?.startedAt; + const hasProgress = + courseProgress?.startedAt && courseProgress?.completed?.length > 0; return (