forked from crowetic/commerce
updated the useUpdateItem hook
This commit is contained in:
@@ -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 },
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user