dasdasdيشيسي
This commit is contained in:
@@ -31,7 +31,7 @@ export default function InnerRegistrationCenterForm(props: InnerFormProps) {
|
||||
const theme = useTheme();
|
||||
const isMobile = useMediaQuery(theme.breakpoints.down("md"));
|
||||
const handleBack = () => {
|
||||
props.update({ registrationCenter: props.values.selectedCenter});
|
||||
props.update({ registrationCenter: props.values});
|
||||
props.setStep((prev) => Math.max(1, prev - 1));
|
||||
};
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ const EMPTY_VALUES: RegistrationCenterFormValues = {
|
||||
|
||||
const RegistrationCenterFormValidationSchema = yup.object({
|
||||
selectedCenter: yup
|
||||
.mixed<CenterItem | null>()
|
||||
.mixed<CenterItem>()
|
||||
.nullable()
|
||||
.required("لطفاً یک مرکز را انتخاب کنید"),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user