Stop redirecting on sign up errors

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-03-12 16:57:52 +04:00
parent 1d54f22cd9
commit 792871bab6
2 changed files with 3 additions and 5 deletions

View File

@@ -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",
});

View File

@@ -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 = "/";
},
});
};