Fix validation schema by renaming 'comments' to 'comment' in InitiateReversalPopups component
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user