From 34c646950509f1e7a8b2e98422e0f70a0ed99754 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 4 Oct 2025 21:41:39 +0000 Subject: [PATCH] Remove fallback logic from getProfileById cgen-d0adb7771c634eb89a834af696e6903a --- client/lib/aethex-database-adapter.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/client/lib/aethex-database-adapter.ts b/client/lib/aethex-database-adapter.ts index fc1a0b98..9d76f0ff 100644 --- a/client/lib/aethex-database-adapter.ts +++ b/client/lib/aethex-database-adapter.ts @@ -277,24 +277,6 @@ export const aethexUserService = { async getProfileById(userId: string): Promise { if (!userId) return null; - if (!isSupabaseConfigured) { - const profile = await mockAuth.getUserProfile(userId); - if (!profile) { - return null; - } - - return normalizeProfile( - { - ...profile, - user_type: (profile as any)?.user_type ?? "game_developer", - experience_level: (profile as any)?.experience_level ?? "beginner", - total_xp: (profile as any)?.total_xp ?? 0, - level: (profile as any)?.level ?? 1, - }, - (profile as any)?.email ?? null, - ); - } - ensureSupabase(); const { data, error } = await supabase