From af01ad03e70d204a7c75c3fcfec775119f32be7c Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Wed, 6 Aug 2025 00:25:47 +0000 Subject: [PATCH] Update updateProfile to use demo storage cgen-92bfa12f800f4a8791b96c1dc0fac289 --- client/contexts/AuthContext.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/client/contexts/AuthContext.tsx b/client/contexts/AuthContext.tsx index 8bd68eb0..3c70ae7e 100644 --- a/client/contexts/AuthContext.tsx +++ b/client/contexts/AuthContext.tsx @@ -210,12 +210,13 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ children if (!user) throw new Error('No user logged in'); if (!isSupabaseConfigured) { - aethexToast.info({ - title: 'Demo Mode', - description: 'Profile updates are simulated in demo mode' + // Use demo storage + const updatedProfile = DemoStorageService.updateUserProfile(updates); + setProfile(updatedProfile); + aethexToast.success({ + title: 'Profile updated', + description: 'Your profile has been updated successfully' }); - // Simulate profile update - setProfile(prev => prev ? { ...prev, ...updates } : null); return; }