From ba5271024b165474b2667e1e3d7fb76231f2fe70 Mon Sep 17 00:00:00 2001 From: Jandson Vitorino Date: Tue, 18 Jul 2023 18:37:22 -0300 Subject: [PATCH] added condition to remove 'share' when status is different from published --- frontend/components/ProductDetail.js | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/frontend/components/ProductDetail.js b/frontend/components/ProductDetail.js index c500899..27e839c 100644 --- a/frontend/components/ProductDetail.js +++ b/frontend/components/ProductDetail.js @@ -243,16 +243,20 @@ export default function ProductDetail({ productId, internalName }) { spacing={2} > {product.display_name} - - - - {product.official_product === true && ( - } - /> + {product.status === 1 && ( + <> + + + + {product.official_product && ( + } + /> + )} + )}