From 570b8091119169279c55b79412801883f6d45936 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Sat, 8 Nov 2025 04:52:42 +0100 Subject: [PATCH] chore: debug join course --- .../CourseLandingPage/components/PricingSection.svelte | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/dashboard/src/lib/components/CourseLandingPage/components/PricingSection.svelte b/apps/dashboard/src/lib/components/CourseLandingPage/components/PricingSection.svelte index 61a3d853..b4dd6aa1 100644 --- a/apps/dashboard/src/lib/components/CourseLandingPage/components/PricingSection.svelte +++ b/apps/dashboard/src/lib/components/CourseLandingPage/components/PricingSection.svelte @@ -2,8 +2,11 @@ import get from 'lodash/get'; import PrimaryButton from '$lib/components/PrimaryButton/index.svelte'; import getCurrencyFormatter from '$lib/utils/functions/getCurrencyFormatter'; - import { isCourseFree } from '$lib/utils/functions/course'; - import { getStudentInviteLink } from '$lib/utils/functions/course'; + import { + isCourseFree, + getStudentInviteLink, + calcCourseDiscount + } from '$lib/utils/functions/course'; import { currentOrg, currentOrgDomain } from '$lib/utils/store/org'; import { goto } from '$app/navigation'; import HtmlRender from '$lib/components/HTMLRender/HTMLRender.svelte'; @@ -12,7 +15,6 @@ import { ROLE } from '$lib/utils/constants/roles'; import { capturePosthogEvent } from '$lib/utils/services/posthog'; import { t } from '$lib/utils/functions/translations'; - import { calcCourseDiscount } from '$lib/utils/functions/course'; export let className = ''; export let editMode = false; @@ -35,8 +37,10 @@ course_cost: courseData.cost, course_free: isFree }); + console.log('$currentOrg', $currentOrg); if (isFree) { const link = getStudentInviteLink(courseData, $currentOrg.siteName, $currentOrgDomain); + console.log('link', link); goto(link); } else { openModal = true;