Fix minimum length message for comment validation in reversal popups
This commit is contained in:
@@ -27,7 +27,7 @@ import ReactQuill from "react-quill";
|
||||
export const conformModalSchema = yup.object().shape({
|
||||
comment: yup
|
||||
.string()
|
||||
.min(2, "Minimum length should be 150 characters.")
|
||||
.min(2, "Minimum length should be 2 characters.")
|
||||
.max(150, "Maximum length should be 150 characters.")
|
||||
.required("Comment is required"),
|
||||
subject: yup.string().notRequired(),
|
||||
|
||||
@@ -23,7 +23,7 @@ import { useForm } from "react-hook-form";
|
||||
export const conformModalSchema = yup.object().shape({
|
||||
comment: yup
|
||||
.string()
|
||||
.min(2, "Minimum length should be 150 characters.")
|
||||
.min(2, "Minimum length should be 2 characters.")
|
||||
.max(150, "Maximum length should be 150 characters.")
|
||||
.required("Comment is required"),
|
||||
});
|
||||
|
||||
@@ -23,7 +23,7 @@ import { useForm } from "react-hook-form";
|
||||
export const conformModalSchema = yup.object().shape({
|
||||
comment: yup
|
||||
.string()
|
||||
.min(2, "Minimum length should be 150 characters.")
|
||||
.min(2, "Minimum length should be 2 characters.")
|
||||
.max(150, "Maximum length should be 150 characters.")
|
||||
.required("Comment is required"),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user