mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-18 15:44:36 +00:00
wip fix for signup issues
This commit is contained in:
1 parent
0ee9b7c442
commit
88fab7b0c2
1 file changed
+4
-1
@@ -81,7 +81,10 @@ export default function SignUpScreen() {
|
||||
email: email!,
|
||||
password: password!,
|
||||
passwordConfirmation: passwordConfirmation!,
|
||||
}).then((error) => {
|
||||
}).then((response) => {
|
||||
const redirectPath = searchParams.get("redirect");
|
||||
navigate(redirectPath ? redirectPath : "/");
|
||||
}).catch((error) => {
|
||||
console.log("Error occured", error);
|
||||
if (error) {
|
||||
addToast(ToastTypes.ERROR, error);
|
||||
|
||||
Reference in new issue
Block a user