Skip to content

Commit ec722ee

Browse files
docs(start/framework/testing): fix code (#13153)
* Update testing.md Without this change, the test doesn't pass * Update contributors.yml * Use destructuring Co-authored-by: Michaël De Boey <[email protected]> --------- Co-authored-by: Michaël De Boey <[email protected]>
1 parent fbe796a commit ec722ee

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@
156156
- JesusTheHun
157157
- jimniels
158158
- jmargeta
159+
- jmjpro
159160
- johnpangalos
160161
- jonkoops
161162
- jrakotoharisoa

docs/start/framework/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Consider a login form component that relies on `useActionData`
1313
import { useActionData } from "react-router";
1414

1515
export function LoginForm() {
16-
const errors = useActionData();
16+
const { errors } = useActionData();
1717
return (
1818
<Form method="post">
1919
<label>

0 commit comments

Comments
 (0)