Ignore some types

This commit is contained in:
Luis Alvarez
2021-02-25 18:10:59 -05:00
parent e90d9a2121
commit fc023de844
12 changed files with 22 additions and 10 deletions

View File

@@ -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
)