mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 05:31:22 +00:00
bug fixes
This commit is contained in:
parent
519008bad0
commit
bef569619f
@ -28,7 +28,7 @@ const removeItem: CartEndpoint['operations']['removeItem'] = async ({
|
||||
: // Remove the cart cookie if the cart was removed (empty items)
|
||||
getCartCookie(config.cartCookie)
|
||||
)
|
||||
res.status(200).json({ data: normalizeCart(data) })
|
||||
res.status(200).json({ data: data && normalizeCart(data) })
|
||||
}
|
||||
|
||||
export default removeItem
|
||||
|
@ -120,7 +120,7 @@ export class CommerceAPI extends CoreCommerceAPI<Provider> {
|
||||
options?: E['schema']['endpoint']['options']
|
||||
}
|
||||
): NextApiHandler {
|
||||
return this.endpoint(context)
|
||||
return super.endpoint(context)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user