diff --git a/src/components/Dashboard/home/DashboardHomeEmploymentInfo.tsx b/src/components/Dashboard/home/DashboardHomeEmploymentInfo.tsx index 5bae263..add4881 100644 --- a/src/components/Dashboard/home/DashboardHomeEmploymentInfo.tsx +++ b/src/components/Dashboard/home/DashboardHomeEmploymentInfo.tsx @@ -27,7 +27,7 @@ const initialValues = { salary_payment_date: "", employment_id: "", highest_eductaion: "", - employer: "", + employer_uid: "", isChecked: false }; @@ -79,7 +79,7 @@ const validationSchema = Yup.object().shape({ .required("Required"), highest_eductaion: Yup.string() .required("Required"), - employer: Yup.string().when('isChecked', { + employer_uid: Yup.string().when('isChecked', { is: false, then: () => Yup.string().required('required'), }), @@ -128,15 +128,15 @@ export default function DashboardHomeEmploymentInfo({handleNextStep}:Props) {