chore: [FIXED] clean up console logs in layout and pricing components, add context prompt for ClassroomIO
This point I have fixed 2 major issues 1. After signing in with Google auth, join a course and going to the course, when you click the back button in the page nav, it takes you to admin instead of lms 2. When you open a course landing page, click enroll, it redirects to 404 instead of the invite page.
This commit is contained in:
+2
-2
@@ -37,10 +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;
|
||||
|
||||
@@ -68,7 +68,6 @@
|
||||
$globalStore.orgSiteName = data.orgSiteName;
|
||||
$globalStore.isOrgSite = data.isOrgSite;
|
||||
|
||||
console.log('Setting current org to', data.org);
|
||||
currentOrg.set(data.org);
|
||||
|
||||
// Setup internal analytics
|
||||
@@ -77,8 +76,6 @@
|
||||
setTheme(data.org?.theme);
|
||||
}
|
||||
|
||||
$: console.log('Current org', $currentOrg);
|
||||
|
||||
onMount(() => {
|
||||
pageSetup();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user