Fixed types

This commit is contained in:
Luis Alvarez
2021-02-25 17:18:50 -05:00
parent 46ae76c67f
commit e90d9a2121
9 changed files with 28 additions and 23 deletions

View File

@@ -40,7 +40,8 @@ export const handler: MutationHook<Cart, {}, CartItemBody> = {
},
})
return checkoutToCart(checkoutLineItemsAdd)
// TODO: Fix this Cart type here
return checkoutToCart(checkoutLineItemsAdd) as any
},
useHook: ({ fetch }) => () => {
const { mutate } = useCart()