diff --git a/client/lib/supabase.ts b/client/lib/supabase.ts index a439fc42..68b74755 100644 --- a/client/lib/supabase.ts +++ b/client/lib/supabase.ts @@ -144,7 +144,7 @@ export const supabase = new Proxy(supabaseClient || {}, { eq: () => builder, order: () => builder, limit: () => builder, - single: async () => ({ data: rows[0] ?? null, error: null }), + single: async () => ({ data: rows[0] ?? {}, error: null }), then: undefined, // prevent accidental Promise behavior }; return builder;