mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Merge branch 'agnostic' of github.com:vercel/commerce into agnostic
This commit is contained in:
@@ -40,10 +40,8 @@ const ProductView: FC<Props> = ({ product }) => {
|
||||
setLoading(true)
|
||||
try {
|
||||
await addItem({
|
||||
productId: Number(product.id),
|
||||
variantId: variant
|
||||
? Number(variant.id)
|
||||
: Number(product.variants[0].id),
|
||||
productId: product.id,
|
||||
variantId: variant ? variant.id : product.variants[0].id,
|
||||
})
|
||||
openSidebar()
|
||||
setLoading(false)
|
||||
|
Reference in New Issue
Block a user