fix(auth): correct getUserOrganizations return type handling in context
This commit is contained in:
@@ -109,7 +109,7 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
|
|||||||
if (pathname?.startsWith('/onboarding')) return
|
if (pathname?.startsWith('/onboarding')) return
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const { organizations } = await getUserOrganizations()
|
const organizations = await getUserOrganizations()
|
||||||
|
|
||||||
if (organizations.length === 0) {
|
if (organizations.length === 0) {
|
||||||
// * No organizations -> Redirect to Onboarding
|
// * No organizations -> Redirect to Onboarding
|
||||||
|
|||||||
Reference in New Issue
Block a user