File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
examples/react/standard-schema/src Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ function FieldInfo({ field }: { field: AnyFieldApi }) {
10
10
return (
11
11
< >
12
12
{ field . state . meta . isTouched && field . state . meta . errors . length ? (
13
- < em > { field . state . meta . errors . join ( ',' ) } </ em >
13
+ < em > { field . state . meta . errors . map ( ( err ) => err . message ) . join ( ',' ) } </ em >
14
14
) : null }
15
15
{ field . state . meta . isValidating ? 'Validating...' : null }
16
16
</ >
@@ -58,9 +58,6 @@ export default function App() {
58
58
// Do something with form data
59
59
console . log ( value )
60
60
} ,
61
- // DEMO: There's no need to pass an adapter! You may use it only if you need to pass custom options.
62
- // validatorAdapter: standardSchemaValidator(),
63
- // validatorAdapter: standardSchemaValidator({ transformErrors: (issues) => issues.map((issue) => issue.message)[0] }),
64
61
} )
65
62
66
63
return (
You can’t perform that action at this time.
0 commit comments