Procházet zdrojové kódy

feat module 6, 7 : remove size chart label from essentials product

master
nadia před 4 měsíci
rodič
revize
e89157ec11

+ 1
- 1
src/components/ProductDetails/ProductDetails.jsx Zobrazit soubor

@@ -396,7 +396,7 @@ const ProductDetails = () => {
396 396
   const sizeChartMetafield = product?.metafields?.size_chart
397 397
   const sizeChartImageUrl = sizeChartMetafield?.reference?.image?.url || sizeChartMetafield?.reference?.url || ""
398 398
   const sizeChartImageAlt = sizeChartMetafield?.reference?.image?.altText || `${product?.title || "Product"} size chart`
399
-  const isEssentialProduct = (product?.productType || "").trim().toUpperCase() === "BEAUTY"
399
+  const isEssentialProduct = ["BEAUTY", "HOME"].includes((product?.productType || "").trim().toUpperCase())
400 400
 
401 401
   // Renders Shopify product metafield custom.material inside the Material row.
402 402
   const materialPanel = (

Načítá se…
Zrušit
Uložit