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:
@@ -44,7 +44,7 @@ export const fetcher: HookFetcher<Cart | null, any> = async (
|
||||
variables: { checkoutId, lineItems: [item] },
|
||||
})
|
||||
|
||||
return checkoutToCart(data?.checkoutLineItemsUpdate)
|
||||
return checkoutToCart(data.checkoutLineItemsUpdate)
|
||||
}
|
||||
|
||||
function extendHook(customFetcher: typeof fetcher, cfg?: { wait?: number }) {
|
||||
|
Reference in New Issue
Block a user