Skip to content

Commit

Permalink
docs: fix selected variant in storefront guide (medusajs#10785)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser authored and noubase committed Jan 22, 2025
1 parent 30b69a4 commit 8c54064
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default function Product({ params: { id } }: Params) {
}

return product.variants.find((variant) => variant.options?.every(
(optionValue) => optionValue.value === selectedOptions[optionValue.option_id!]
(optionValue) => optionValue.id === selectedOptions[optionValue.option_id!]
))
}, [selectedOptions, product])

Expand Down

0 comments on commit 8c54064

Please sign in to comment.