4
0
forked from crowetic/commerce

updated the useUpdateItem hook

This commit is contained in:
Luis Alvarez
2020-10-09 11:10:58 -05:00
parent cc0e62cd7e
commit eb3f29fa95
5 changed files with 53 additions and 34 deletions

View File

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