diff --git a/client/contexts/AuthContext.tsx b/client/contexts/AuthContext.tsx index 7ac0360a..8bd68eb0 100644 --- a/client/contexts/AuthContext.tsx +++ b/client/contexts/AuthContext.tsx @@ -86,25 +86,10 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ children const fetchUserProfile = async (userId: string) => { if (!isSupabaseConfigured) { - // Set demo profile - setProfile({ - id: userId, - username: 'demo-user', - full_name: 'Demo User', - user_type: 'game_developer', - experience_level: 'intermediate', - total_xp: 150, - level: 3, - created_at: new Date().toISOString(), - updated_at: new Date().toISOString(), - avatar_url: null, - bio: 'Demo user profile', - location: null, - website_url: null, - github_url: null, - twitter_url: null, - linkedin_url: null, - }); + // Initialize demo data and get profile + DemoStorageService.initializeDemoData(); + const demoProfile = DemoStorageService.getUserProfile(); + setProfile(demoProfile); return; }