diff --git a/src/Pages/IO_Management/CreateIO/IODetails.jsx b/src/Pages/IO_Management/CreateIO/IODetails.jsx index bbc79b9..93d7a37 100644 --- a/src/Pages/IO_Management/CreateIO/IODetails.jsx +++ b/src/Pages/IO_Management/CreateIO/IODetails.jsx @@ -67,7 +67,7 @@ const schema = yup.object().shape({ closingDate: yup .date() - .required("Closing date is required") + .notRequired("Closing date is required") .min(new Date(), "Closing date cannot be in the past"), holdingPeriod: yup.string().required("Holding period is required"), @@ -78,9 +78,9 @@ const schema = yup.object().shape({ // .positive("Minimum investment must be a positive number") // .min(1, "Minimum investment must be at least 1"), - ISIN: yup.string(), + ISIN: yup.string().notRequired(), - InvestmentDetails: yup.string(), + InvestmentDetails: yup.string().notRequired(), comment: yup.string() .min(10, "Comment must be at least 10 characters long") @@ -311,7 +311,7 @@ const IODetails = ({ enableNextTab, index, data }) => { label: "Expected Return", placeHolder: "$00.00", name: "expectedReturn", - type: "number", + type: "text", isRequired: true, section: " ", width: "32.3%",