Skip to content

Commit 51707d8

Browse files
authored
typo (#1076)
issue #1075
1 parent dedd322 commit 51707d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/content/docs/useform/seterror.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The function allows you to manually set one or more errors.
2222

2323
- This method will not persist the associated input error if the input passes `register`'s associated rules.
2424
```javascript
25-
register('registerInput', { minLength: 4 }});
25+
register('registerInput', { minLength: 4 });
2626
setError('registerInput', { type: 'custom', message: 'custom message' });
2727
// validation will pass as long as minLength requirement pass
2828
```

src/data/api.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ handleSubmit(async (data) => await fetchAPI(data))`}
12951295
input passes <code>register</code>'s associated rules.
12961296
</p>
12971297
<CodeArea
1298-
rawData={`register('registerInput', { minLength: 4 }});
1298+
rawData={`register('registerInput', { minLength: 4 });
12991299
setError('registerInput', { type: 'custom', message: 'custom message' });
13001300
// validation will pass as long as minLength requirement pass
13011301
`}

0 commit comments

Comments
 (0)