tweak(frontend): Add msg for custom error (#8157)

add waitlist msg
This commit is contained in:
Aarushi
2024-09-25 19:18:52 +01:00
committed by GitHub
parent bd39d5da0b
commit d220562806

View File

@@ -50,6 +50,9 @@ export async function signup(values: z.infer<typeof loginFormSchema>) {
const { data, error } = await supabase.auth.signUp(values);
if (error) {
if (error.message.includes("P0001")) {
return "Please join our waitlist for your turn: https://agpt.co/waitlist";
}
return error.message;
}