mirror of
https://github.com/vercel/commerce.git
synced 2025-07-27 04:01:23 +00:00
Added initial version of useAddItem
This commit is contained in:
@@ -34,7 +34,7 @@ export const fetcher: HookFetcher<Cart | null, any> = async (
|
||||
...options,
|
||||
variables: { lineItemIds: [itemId], checkoutId },
|
||||
})
|
||||
return checkoutToCart(data?.checkoutLineItemsRemove)
|
||||
return checkoutToCart(data.checkoutLineItemsRemove)
|
||||
}
|
||||
|
||||
export function extendHook(customFetcher: typeof fetcher) {
|
||||
|
Reference in New Issue
Block a user