Updated defaults in all hooks

This commit is contained in:
Luis Alvarez
2020-10-21 10:35:49 -05:00
parent d98897a7e3
commit 2804627aef
11 changed files with 31 additions and 20 deletions

View File

@@ -22,8 +22,8 @@ export const fetcher: HookFetcher<null, SignupBody> = (
}
return fetch({
url: options?.url ?? defaultOpts.url,
method: options?.method ?? defaultOpts.method,
...defaultOpts,
...options,
body: { firstName, lastName, email, password },
})
}