4
0
forked from crowetic/commerce

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

@@ -19,8 +19,8 @@ export const fetcher: HookFetcher<Cart | null, RemoveItemBody> = (
fetch
) => {
return fetch({
url: options?.url ?? defaultOpts.url,
method: options?.method ?? defaultOpts.method,
...defaultOpts,
...options,
body: { itemId },
})
}