mirror of
https://github.com/vercel/commerce.git
synced 2025-07-27 04:01:23 +00:00
Ignore some types
This commit is contained in:
@@ -26,7 +26,9 @@ const WishlistButton: FC<Props> = ({
|
||||
const { openModal, setModalView } = useUI()
|
||||
const [loading, setLoading] = useState(false)
|
||||
|
||||
// @ts-ignore Wishlist is not always enabled
|
||||
const itemInWishlist = data?.items?.find(
|
||||
// @ts-ignore Wishlist is not always enabled
|
||||
(item) =>
|
||||
item.product_id === productId && (item.variant_id as any) === variant.id
|
||||
)
|
||||
|
Reference in New Issue
Block a user