Fix validation schema by renaming 'comments' to 'comment' in InitiateReversalPopups component

This commit is contained in:
Swapnil Bendal
2025-01-17 18:57:10 +05:30
parent 5e86a72700
commit 0ccfba1238

View File

@@ -21,7 +21,7 @@ import { yupResolver } from "@hookform/resolvers/yup";
import { useForm } from "react-hook-form";
export const conformModalSchema = yup.object().shape({
comments: yup
comment: yup
.string()
.min(2, "Minimum length should be 150 characters.")
.max(150, "Maximum length should be 150 characters.")