Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

show the correct error message

Anibal Svarcasb45008c61d91
diff --git a/src/components/atomic-crm/providers/supabase/dataProvider.ts b/src/components/atomic-crm/providers/supabase/dataProvider.ts
index 406eab0d..6e4d7fd8 100644
--- a/src/components/atomic-crm/providers/supabase/dataProvider.ts
+++ b/src/components/atomic-crm/providers/supabase/dataProvider.ts
@@ -116,7 +116,7 @@ const dataProviderWithCustomMethods = {
if (!response.data?.user || response.error) {
console.error("signUp.error", response.error);
- throw new Error("Failed to create account");
+ throw new Error(response?.error?.message || "Failed to create account");
}
// Update the is initialized cache