diff --git a/apps/dashboard/src/lib/features/course/components/card.svelte b/apps/dashboard/src/lib/features/course/components/card.svelte index c77c9a6f..15ada2eb 100644 --- a/apps/dashboard/src/lib/features/course/components/card.svelte +++ b/apps/dashboard/src/lib/features/course/components/card.svelte @@ -142,8 +142,10 @@ let cost = $derived(calcCourseDiscount(pricingData.discount, pricingData.cost ?? 0, !!pricingData.showDiscount)); + const isExploreClickable = $derived(!!(isLMS && isExplore && onExploreClick)); + let courseUrl = $derived.by(() => { - if (onExploreClick && isLMS && isExplore) { + if (isExploreClickable) { return undefined; } @@ -225,6 +227,7 @@ {#if isLMS} -