diff options
| author | trisusilo <tri.susilo@altama.co.id> | 2023-08-31 07:00:31 +0000 |
|---|---|---|
| committer | trisusilo <tri.susilo@altama.co.id> | 2023-08-31 07:00:31 +0000 |
| commit | d79dad310f2cab1844c98655aaadba501b06fdc1 (patch) | |
| tree | 1d2ee10fa0b28ef2e487b69918ef964e349ab4a2 /src/lib | |
| parent | 05237c1ed98b826287969d7e26f2a53569dba752 (diff) | |
| parent | 35013fd66d8cbc78e07573112fc482fb7dec14e2 (diff) | |
Merged in CR/tampilan (pull request #52)
bugs fixing flash sale tag
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/product/components/ProductCard.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx index 36cd8d18..66363ff2 100644 --- a/src/lib/product/components/ProductCard.jsx +++ b/src/lib/product/components/ProductCard.jsx @@ -45,7 +45,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { height={5} /> <span className='text-white text-[11px] font-semibold'> - {product?.flashSale?.tag} + {product?.flashSale?.tag != "false" || product?.flashSale?.tag != product?.flashSale?.tag ? '' : 'FLASH SALE'} </span> </div> </div> @@ -138,7 +138,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { width={15} height={10} /> - <span className='text-white text-xs font-semibold'>FLASH SALE</span> + <span className='text-white text-xs font-semibold'>{product?.flashSale?.tag != "false" || product?.flashSale?.tag != product?.flashSale?.tag ? '' : 'FLASH SALE'}</span> </div> )} {product?.manufacture?.name ? ( |
