Skip to content

Commit 954fda5

Browse files
committed
fix(useForm): add initialValue to fields reducer
1 parent af2b8a9 commit 954fda5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function useForm ({
7474
value: key in form ? form[key] : undefined,
7575
error: key in errors ? errors[key] : false
7676
}
77-
}))
77+
}), {})
7878

7979

8080
/**

0 commit comments

Comments
 (0)