From 1d606fe88f97f87e32a58b1b187a71f40c70169c Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 29 Mar 2023 14:29:29 +0700
Subject: blog detail

---
 .../product/components/Product/ProductDesktop.jsx  | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

(limited to 'src/lib/product/components/Product/ProductDesktop.jsx')

diff --git a/src/lib/product/components/Product/ProductDesktop.jsx b/src/lib/product/components/Product/ProductDesktop.jsx
index 2f0ac488..0866bffa 100644
--- a/src/lib/product/components/Product/ProductDesktop.jsx
+++ b/src/lib/product/components/Product/ProductDesktop.jsx
@@ -276,20 +276,22 @@ const VariantPrice = ({ id }) => {
 
   return (
     <>
-      {variantPrice?.data?.discount > 0 && (
+      {variantPrice?.data?.discount > 0 && variantPrice?.data?.priceExcludeAfterDiscount > 0 && (
         <>
-          <span className='line-through text-caption-1 text-gray_r-11'>
+          <div className='line-through text-caption-1 text-gray_r-11 mb-1'>
             {currencyFormat(variantPrice?.data?.priceExclude)}
-          </span>{' '}
+          </div>{' '}
         </>
       )}
-      {variantPrice?.data?.priceExcludeAfterDiscount > 0 ? (
-        currencyFormat(variantPrice?.data?.priceExcludeAfterDiscount)
-      ) : (
-        <a href='https://wa.me/' className='text-red_r-11'>
-          Call for price
-        </a>
-      )}
+      <div>
+        {variantPrice?.data?.priceExcludeAfterDiscount > 0 ? (
+          currencyFormat(variantPrice?.data?.priceExcludeAfterDiscount)
+        ) : (
+          <a href='https://wa.me/' className='text-red_r-11'>
+            Call for price
+          </a>
+        )}
+      </div>
     </>
   )
 }
-- 
cgit v1.2.3

