Skip to content

Commit

Permalink
typing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlemTuzlak committed May 13, 2023
1 parent 126668e commit ad51256
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "remix-hook-form",
"version": "1.1.0",
"version": "1.1.1",
"description": "Utility wrapper around react-hook-form for use with Remix.run",
"type": "module",
"main": "./dist/index.umd.cjs",
Expand Down
2 changes: 1 addition & 1 deletion src/hook/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const useRemixForm = <T extends FieldValues>({
submitHandlers?.onValid ?? onSubmit,
submitHandlers?.onInvalid ?? onInvalid
),
register: (name: Path<T>, options: RegisterOptions<T>) => ({
register: (name: Path<T>, options?: RegisterOptions<T>) => ({
...methods.register(name, options),
defaultValue: data?.defaultValues?.[name] ?? "",
}),
Expand Down

0 comments on commit ad51256

Please sign in to comment.