Fix minimum length message for comment validation in reversal popups

This commit is contained in:
satyam70288
2025-01-18 11:30:54 +00:00
parent 2b89e52e58
commit af2485ba58
3 changed files with 3 additions and 3 deletions

View File

@@ -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(),

View File

@@ -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"),
});

View File

@@ -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"),
});