docs: fix selected variant in storefront guide (#10785)
This commit is contained in:
1 parent
a0a94d5030
commit
8e27af552f
1 file changed
+1
-1
@@ -81,7 +81,7 @@ export default function Product({ params: { id } }: Params) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return product.variants.find((variant) => variant.options?.every(
|
return product.variants.find((variant) => variant.options?.every(
|
||||||
(optionValue) => optionValue.value === selectedOptions[optionValue.option_id!]
|
(optionValue) => optionValue.id === selectedOptions[optionValue.option_id!]
|
||||||
))
|
))
|
||||||
}, [selectedOptions, product])
|
}, [selectedOptions, product])
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user