diff --git a/src/components/Dashboard/home/DashboardHomeEmploymentInfo.tsx b/src/components/Dashboard/home/DashboardHomeEmploymentInfo.tsx index add4881..946f521 100644 --- a/src/components/Dashboard/home/DashboardHomeEmploymentInfo.tsx +++ b/src/components/Dashboard/home/DashboardHomeEmploymentInfo.tsx @@ -96,7 +96,13 @@ export default function DashboardHomeEmploymentInfo({handleNextStep}:Props) { //FUNCTION TO HANDLE SUBMIT const handleSubmit = (values:any) => { // Remember to changed the checked value's name - handleNextStep({employment: values}) + if(values.employer_uid){ + let employer_uid = values.employer_uid + delete values.employer_uid + handleNextStep({employer_uid, employment: values}) + }else{ + handleNextStep({employment: values}) + } }; useEffect(()=>{