edit register
This commit is contained in:
@@ -231,8 +231,8 @@ export async function registration(
|
||||
} else {
|
||||
throw (`${response.status}`);
|
||||
}
|
||||
console.log('/v1');
|
||||
return {
|
||||
|
||||
/* return {
|
||||
previousState: {
|
||||
fullName,
|
||||
email,
|
||||
@@ -244,7 +244,7 @@ export async function registration(
|
||||
},
|
||||
mailConfirm: true,
|
||||
error: null
|
||||
};
|
||||
}; */
|
||||
} catch (error: unknown) {
|
||||
if (error) {
|
||||
const typedError = error as any;
|
||||
@@ -290,7 +290,7 @@ export async function registration(
|
||||
throw error;
|
||||
}
|
||||
|
||||
/* redirect('/pages/dashboard'); */
|
||||
redirect('/pages/dashboard');
|
||||
/* console.log('/v2');
|
||||
redirect('/v2'); */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user