From 0ccfba123874599b262bdbe1e2f9fab19d45a1b4 Mon Sep 17 00:00:00 2001 From: Swapnil Bendal <84583651+Swapnil155@users.noreply.github.com> Date: Fri, 17 Jan 2025 18:57:10 +0530 Subject: [PATCH] Fix validation schema by renaming 'comments' to 'comment' in InitiateReversalPopups component --- src/Components/Popups/InitiateReversalPopups.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Popups/InitiateReversalPopups.jsx b/src/Components/Popups/InitiateReversalPopups.jsx index 67faded..c9c9810 100644 --- a/src/Components/Popups/InitiateReversalPopups.jsx +++ b/src/Components/Popups/InitiateReversalPopups.jsx @@ -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.")