mirror of
https://github.com/vercel/commerce.git
synced 2025-09-07 16:30:17 +00:00
Added the options for a variant to the product page
This commit is contained in:
@@ -9,7 +9,9 @@ export function getVariant(product: Product, opts: SelectedOptions) {
|
||||
option.__typename === 'MultipleChoiceOption' &&
|
||||
option.displayName.toLowerCase() === key.toLowerCase()
|
||||
) {
|
||||
return option.values.find((v) => v.label.toLowerCase() === value)
|
||||
return option.values.find((v) => {
|
||||
return v.label.toLowerCase() === value
|
||||
})
|
||||
}
|
||||
})
|
||||
)
|
||||
|
Reference in New Issue
Block a user