From 38baa0504bfb477d0ad7c7ae42ab389f2be52cf1 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Thu, 22 Jan 2026 01:54:12 +0100 Subject: [PATCH] fix(auth): correct getUserOrganizations return type handling in context --- lib/auth/context.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auth/context.tsx b/lib/auth/context.tsx index eff2360..0ddd3ba 100644 --- a/lib/auth/context.tsx +++ b/lib/auth/context.tsx @@ -109,7 +109,7 @@ export function AuthProvider({ children }: { children: React.ReactNode }) { if (pathname?.startsWith('/onboarding')) return try { - const { organizations } = await getUserOrganizations() + const organizations = await getUserOrganizations() if (organizations.length === 0) { // * No organizations -> Redirect to Onboarding