Updates to wishlist feature

This commit is contained in:
Luis Alvarez
2021-02-22 19:06:03 -05:00
parent 4b4d804d03
commit a8607f24cd
10 changed files with 20 additions and 15 deletions

View File

@@ -152,11 +152,11 @@ const ProductView: FC<Props> = ({ product, wishlist = false }) => {
</Button>
</div>
</div>
{wishlist && (
{process.env.WISHLIST_ENABLED && (
<WishlistButton
className={s.wishlistButton}
productId={product.id}
variant={product.variants[0]!}
variant={product.variants[0]! as any}
/>
)}
</div>