diff --git a/src/lib/components/CourseLandingPage/components/Editor/PricingForm.svelte b/src/lib/components/CourseLandingPage/components/Editor/PricingForm.svelte index f555b361..0ae9f5b0 100644 --- a/src/lib/components/CourseLandingPage/components/Editor/PricingForm.svelte +++ b/src/lib/components/CourseLandingPage/components/Editor/PricingForm.svelte @@ -14,8 +14,8 @@ let discount = 0; let paymentLink = ''; - let showDiscount = false; - let giftToggled = false; + let showDiscount: boolean | undefined = undefined; + let giftToggled: boolean | undefined = undefined; let hasBeenSet = false; @@ -30,7 +30,7 @@ giftToggled = get(course, 'metadata.reward.show', false); } - function setter(value: string | number | boolean, setterKey: string) { + function setter(value: string | number | boolean | undefined, setterKey: string) { if (typeof value !== 'boolean' && !value) return; const _course = cloneDeep(course); diff --git a/src/lib/components/CourseLandingPage/components/Editor/index.svelte b/src/lib/components/CourseLandingPage/components/Editor/index.svelte index 7c49e55f..f80dfbbc 100644 --- a/src/lib/components/CourseLandingPage/components/Editor/index.svelte +++ b/src/lib/components/CourseLandingPage/components/Editor/index.svelte @@ -120,6 +120,7 @@ attendance: undefined, group: undefined, lessons: undefined, + polls: undefined, slug: course.slug }); loading = false; diff --git a/src/lib/components/CourseLandingPage/index.svelte b/src/lib/components/CourseLandingPage/index.svelte index 61f002af..681e4bad 100644 --- a/src/lib/components/CourseLandingPage/index.svelte +++ b/src/lib/components/CourseLandingPage/index.svelte @@ -22,6 +22,7 @@ import { VARIANTS } from '$lib/components/PrimaryButton/constants'; import HtmlRender from '$lib/components/HTMLRender/HTMLRender.svelte'; import { calDateDiff } from '$lib/utils/functions/date'; + import { currentOrg } from '$lib/utils/store/org'; export let editMode = false; export let courseData: Course; @@ -95,7 +96,7 @@ - {get(courseData, 'title', '')} + {editMode ? '[app] - ' : ''}{get(courseData, 'title', '')} @@ -421,7 +422,7 @@ Author Avatar