diff --git a/src/components/AddJob/AddJob.jsx b/src/components/AddJob/AddJob.jsx index 1c824e8..b3a3f0f 100644 --- a/src/components/AddJob/AddJob.jsx +++ b/src/components/AddJob/AddJob.jsx @@ -36,15 +36,15 @@ const validationSchema = Yup.object().shape({ .required("Timeline is required"), }); -let initialValues = { - // initial values for formik - country: "", - price: 0, - title: "", - description: "", - job_detail: "", - timeline_days: "", -}; +// let initialValues = { +// // initial values for formik +// country: "NG", +// price: 0, +// title: "", +// description: "", +// job_detail: "", +// timeline_days: "", +// }; function AddJob() { const ApiCall = new usersService(); @@ -60,6 +60,16 @@ function AddJob() { data: [], }); // To Hold the array of country getUserCountry returns + let initialValues = { + // initial values for formik + country: userDetails.country, + price: "", + title: "", + description: "", + job_detail: "", + timeline_days: "", + }; + let [requestStatus, setRequestStatus] = useState({ loading: false, status: false, @@ -123,8 +133,8 @@ function AddJob() { }; useEffect(() => { - setPageLoading(false); getUserCountry(); + setPageLoading(false); }, []); return pageLoading.loading ? ( @@ -173,6 +183,7 @@ function AddJob() {