We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 864a2bf commit f621064Copy full SHA for f621064
1 file changed
src/routes/(info)/lttstore/products/[handle]/VariantDisplay.svelte
@@ -31,7 +31,7 @@
31
product.media.find(m => m.id === variant.featured_media!.id)!
32
) ??
33
// If only one (or first) color/design option and it wasnt featured, just use the first image
34
- (lowerOptionName.includes("color") || lowerOptionName.includes("design") && vi === 0 && product.media[0])
+ ((lowerOptionName.includes("color") || lowerOptionName.includes("design")) && vi === 0 && product.media[0])
35
}
36
<div class={[
37
"card px-2 py-1 inline-flex m-1 flex-col",
0 commit comments