mirror of
https://github.com/vercel/commerce.git
synced 2025-07-27 04:01:23 +00:00
multiple changes to fix the wishlist
This commit is contained in:
@@ -30,7 +30,8 @@ const WishlistButton: FC<Props> = ({
|
||||
const itemInWishlist = data?.items?.find(
|
||||
// @ts-ignore Wishlist is not always enabled
|
||||
(item) =>
|
||||
item.product_id === productId && (item.variant_id as any) === variant.id
|
||||
item.product_id === Number(productId) &&
|
||||
(item.variant_id as any) === Number(variant.id)
|
||||
)
|
||||
|
||||
const handleWishlistChange = async (e: any) => {
|
||||
|
Reference in New Issue
Block a user