Stop redirecting on sign up errors
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -56,8 +56,8 @@ export default function SignUpPage() {
|
||||
onCompleted: (_, e) => {
|
||||
if (e) {
|
||||
toast({
|
||||
title: __("Registration failed"),
|
||||
description: formatError(__("Registration failed"), e),
|
||||
title: __("Sign up failed"),
|
||||
description: formatError(__("Sign up failed"), e),
|
||||
variant: "error",
|
||||
});
|
||||
return;
|
||||
@@ -72,7 +72,7 @@ export default function SignUpPage() {
|
||||
},
|
||||
onError: (e) => {
|
||||
toast({
|
||||
title: __("Registration failed"),
|
||||
title: __("Sign up failed"),
|
||||
description: e.message,
|
||||
variant: "error",
|
||||
});
|
||||
|
||||
@@ -61,7 +61,6 @@ export default function PasswordSignInPage() {
|
||||
),
|
||||
variant: "error",
|
||||
});
|
||||
window.location.href = "/";
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -73,7 +72,6 @@ export default function PasswordSignInPage() {
|
||||
description: e.message,
|
||||
variant: "error",
|
||||
});
|
||||
window.location.href = "/";
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user