From f87caaa723cec9058789c6390157005780fd95e5 Mon Sep 17 00:00:00 2001 From: psiddharthdesign <107192927+psiddharthdesign@users.noreply.github.com> Date: Mon, 22 Jul 2024 14:45:31 +0530 Subject: [PATCH] logs on testing --- .../(authenticated-pages)/onboarding/page.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/(dynamic-pages)/(authenticated-pages)/onboarding/page.tsx b/src/app/(dynamic-pages)/(authenticated-pages)/onboarding/page.tsx index 45077bbb..bd1bfdd9 100644 --- a/src/app/(dynamic-pages)/(authenticated-pages)/onboarding/page.tsx +++ b/src/app/(dynamic-pages)/(authenticated-pages)/onboarding/page.tsx @@ -11,13 +11,17 @@ async function getDefaultOrganizationOrSet(): Promise { fetchSlimOrganizations(), getDefaultOrganization(), ]); + console.log('slimOrganizations on onboarding', slimOrganizations); const firstOrganization = slimOrganizations[0]; + console.log('firstOrganization on onboarding', firstOrganization); if (defaultOrganizationId) { + console.log('defaultOrganizationId on onboarding', defaultOrganizationId); return defaultOrganizationId; } if (!firstOrganization) { + console.log('no firstOrganization on onboarding'); return null; } @@ -25,6 +29,7 @@ async function getDefaultOrganizationOrSet(): Promise { // reason, because of an invite or for some other reason, // make sure that the default organization is set to the first await setDefaultOrganization(firstOrganization.id); + console.log('set default organization to firstOrganization on onboarding', firstOrganization.id); return firstOrganization.id; } @@ -35,6 +40,8 @@ async function getOnboardingConditions(userId: string) { getDefaultOrganizationOrSet(), ]); + console.log('userProfile on onboarding', userProfile); + console.log('defaultOrganizationId on onboarding', defaultOrganizationId); return { userProfile, defaultOrganizationId,