fix: extrapolate phone number parsing for re-usage in edit profile
move error messages to message handler
This commit is contained in:
@@ -73,6 +73,7 @@ export default function SignupForm({ title }: SignUpFormProps) {
|
||||
lastName: "",
|
||||
email: "",
|
||||
phoneNumber: "",
|
||||
phoneNumberCC: "",
|
||||
dateOfBirth: "",
|
||||
address: {
|
||||
countryCode: "",
|
||||
|
||||
@@ -33,6 +33,7 @@ export const signUpSchema = z.object({
|
||||
signupErrors.PHONE_REQUIRED,
|
||||
signupErrors.PHONE_REQUESTED
|
||||
),
|
||||
phoneNumberCC: z.string(),
|
||||
dateOfBirth: z.string().min(1, {
|
||||
message: signupErrors.BIRTH_DATE_REQUIRED,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user