dasdasdيشيسي

This commit is contained in:
2026-05-31 18:02:54 +03:30
parent b241d12ff5
commit b8dc1d0e1b
2 changed files with 2 additions and 2 deletions

View File

@@ -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));
};

View File

@@ -27,7 +27,7 @@ const EMPTY_VALUES: RegistrationCenterFormValues = {
const RegistrationCenterFormValidationSchema = yup.object({
selectedCenter: yup
.mixed<CenterItem | null>()
.mixed<CenterItem>()
.nullable()
.required("لطفاً یک مرکز را انتخاب کنید"),
});