Remove local fallback in getProfileById
cgen-c14e034888eb46118fc6593904d0ff64
This commit is contained in:
parent
ec086655df
commit
22e3ea7ac8
1 changed files with 3 additions and 6 deletions
|
|
@ -171,12 +171,9 @@ export const aethexUserService = {
|
|||
}
|
||||
|
||||
if (isTableMissing(error)) {
|
||||
console.warn('user_profiles table missing during getProfileById - returning local fallback if available');
|
||||
try {
|
||||
const raw = localStorage.getItem(`demo_profile_${userId}`);
|
||||
if (raw) return JSON.parse(raw) as AethexUserProfile;
|
||||
} catch {}
|
||||
return null;
|
||||
throw new Error(
|
||||
'Supabase table "user_profiles" is missing. Please run the required migrations.',
|
||||
);
|
||||
}
|
||||
|
||||
throw error;
|
||||
|
|
|
|||
Loading…
Reference in a new issue