add sync form validate
This commit is contained in:
@@ -133,7 +133,7 @@ export async function authorization(
|
||||
redirect('/pages/dashboard');
|
||||
}
|
||||
|
||||
type FormState = {
|
||||
export type FormState = {
|
||||
previousState: {
|
||||
fullName: string;
|
||||
email: string;
|
||||
@@ -225,8 +225,6 @@ export async function registration(
|
||||
await createSession(parsed.message_body.token, email);
|
||||
} else {
|
||||
console.log('error');
|
||||
/* console.log(parsed.message_body); */
|
||||
/* throw (`${parsed.message_code.fieldErrors}`); */
|
||||
throw parsed;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user