Skip to content

Commit fe9a923

Browse files
committed
close #1196
1 parent 214652a commit fe9a923

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/useform.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ const {
295295
register,
296296
formState: { errors },
297297
} = useForm({
298-
validate: async (formValue) => {
299-
if (formValue.test1.length > formValue.test.length) {
298+
validate: async ({ formValues }: FormValidateResult) => {
299+
if (formValues.test1.length > formValues.test.length) {
300300
return {
301301
type: "formError",
302302
message: "something is wrong here",

0 commit comments

Comments
 (0)