diff --git a/client/lib/aethex-database-adapter.ts b/client/lib/aethex-database-adapter.ts index a8dc3ae5..4c7eaef2 100644 --- a/client/lib/aethex-database-adapter.ts +++ b/client/lib/aethex-database-adapter.ts @@ -549,6 +549,11 @@ export const aethexUserService = { }, async addUserInterests(userId: string, interests: string[]): Promise { + if (!isSupabaseConfigured) { + fallbackInterests.set(userId, Array.from(new Set(interests))); + return; + } + ensureSupabase(); await supabase @@ -577,6 +582,10 @@ export const aethexUserService = { }, async getUserInterests(userId: string): Promise { + if (!isSupabaseConfigured) { + return fallbackInterests.get(userId) ?? []; + } + ensureSupabase(); const { data, error } = await supabase