Fixed another product type

This commit is contained in:
Luis Alvarez 2021-02-15 10:25:35 -05:00
parent 62ed50a646
commit c621874250

View File

@ -43,7 +43,7 @@ const ProductView: FC<Props> = ({ product }) => {
try {
await addItem({
productId: String(product.id),
variantId: variant ? variant.id : product.variants[0].id,
variantId: String(variant ? variant.id : product.variants[0].id),
})
openSidebar()
setLoading(false)