Browse Source

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

master
nadia 23 hours ago
parent
commit
e89157ec11
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/components/ProductDetails/ProductDetails.jsx

+ 1
- 1
src/components/ProductDetails/ProductDetails.jsx View File

@@ -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 = (

Loading…
Cancel
Save