updated
This commit is contained in:
@@ -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%",
|
||||
|
||||
Reference in New Issue
Block a user