From 3d1aa2f922189c4e999550be6947e3f5dceafbb6 Mon Sep 17 00:00:00 2001 From: Samantha Kellow Date: Thu, 23 Nov 2023 16:27:31 +0000 Subject: [PATCH] creating dynamic product info page --- components/product/product-description.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/product/product-description.tsx b/components/product/product-description.tsx index b00adc486..726c1f7b1 100644 --- a/components/product/product-description.tsx +++ b/components/product/product-description.tsx @@ -6,6 +6,7 @@ import { SustainabilityInfo } from './sustainability-info'; import { VariantSelector } from './variant-selector'; export function ProductDescription({ product }: { product: Product }) { + const filterDeterminedOptions = product.options.filter(option => option.name !== 'Wrap') return ( <>
@@ -17,11 +18,11 @@ export function ProductDescription({ product }: { product: Product }) { />
- + - + {!product.tags.includes('wall') && } ); }