update onboarding colors and add image upload
This commit is contained in:
4
App.tsx
4
App.tsx
@@ -46,12 +46,8 @@ const RequireOnboarding: React.FC<{ children: React.ReactNode }> = ({ children }
|
||||
|
||||
if (!org) return <div className="p-8">Loading organization...</div>;
|
||||
|
||||
// Get the user's relationship to this organization
|
||||
const userOrgRelation = organizations.find(o => o.orgId === selectedOrgId);
|
||||
const isOrgOwner = userOrgRelation?.role === 'owner';
|
||||
|
||||
// SINGLE SOURCE OF TRUTH: Organization onboarding completion is the authoritative source
|
||||
// User organization records are updated to reflect this, but org.onboardingCompleted is primary
|
||||
const onboardingCompleted = org.onboardingCompleted === true;
|
||||
|
||||
console.log('RequireOnboarding check:', {
|
||||
|
||||
Reference in New Issue
Block a user