diff --git a/src/components/AddJob/AddJob.jsx b/src/components/AddJob/AddJob.jsx index 479bee6..61cb8fc 100644 --- a/src/components/AddJob/AddJob.jsx +++ b/src/components/AddJob/AddJob.jsx @@ -13,7 +13,7 @@ const validationSchema = Yup.object().shape({ .max(25, "Maximum 25 characters") .required("Country is required"), price: Yup.number() - .typeError("you must specify a number") + .typeError("you must specify a number") .min(1, "Price must be greater than 0") .required("Price is required"), title: Yup.string() @@ -36,7 +36,7 @@ const validationSchema = Yup.object().shape({ let initialValues = { // initial values for formik country: '', - price: '', + price: 0, title: '', description: '', job_detail: '', @@ -137,8 +137,10 @@ function AddJob() {