fix: bugs
This commit is contained in:
@@ -15,6 +15,20 @@ export const studentProfileSchema = object().shape({
|
||||
provinceId: string().nullable().notRequired(),
|
||||
cityId: string().nullable().notRequired(),
|
||||
address: string().nullable().notRequired(),
|
||||
postalCode: string()
|
||||
.nullable()
|
||||
.notRequired()
|
||||
.matches(/^\d{10}$/, { message: 'کد پستی باید ۱۰ رقم باشد', excludeEmptyString: true }),
|
||||
virtualPhoneNumber: string()
|
||||
.nullable()
|
||||
.notRequired()
|
||||
.matches(/^\d{10,15}$/, { message: 'شماره تلفن مجازی نامعتبر است', excludeEmptyString: true }),
|
||||
seminaryCode: string().nullable().notRequired(),
|
||||
seminaryServiceCenterCode: string().nullable().notRequired(),
|
||||
childrenCount: string()
|
||||
.nullable()
|
||||
.notRequired()
|
||||
.matches(/^\d+$/, { message: 'تعداد فرزند باید عدد باشد', excludeEmptyString: true }),
|
||||
})
|
||||
|
||||
export const studentResetPasswordSchema = object().shape({
|
||||
|
||||
Reference in New Issue
Block a user