From d20adeb6a5f6e153e2d1cfc8c8c77f4cceb743e8 Mon Sep 17 00:00:00 2001
From: trisusilo48 <tri.susilo@altama.co.id>
Date: Tue, 31 Dec 2024 09:53:27 +0700
Subject: ppn 12%

---
 src-migrate/modules/cart/components/CartSummaryMobile.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src-migrate/modules/cart/components/CartSummaryMobile.tsx')

diff --git a/src-migrate/modules/cart/components/CartSummaryMobile.tsx b/src-migrate/modules/cart/components/CartSummaryMobile.tsx
index d9f72e0e..02258204 100644
--- a/src-migrate/modules/cart/components/CartSummaryMobile.tsx
+++ b/src-migrate/modules/cart/components/CartSummaryMobile.tsx
@@ -29,6 +29,7 @@ const CartSummaryMobile = ({
   isLoaded = false,
 }: Props) => {
   const [showPopup, setShowPopup] = useState(false);
+  const PPN : number = process.env.NEXT_PUBLIC_PPN ? parseFloat(process.env.NEXT_PUBLIC_PPN) : 0;
   return (
     <>
       <BottomPopup
@@ -63,7 +64,7 @@ const CartSummaryMobile = ({
             </Skeleton>
 
             <Skeleton isLoaded={isLoaded} className={style.line}>
-              <span className={style.label}>Tax 11%</span>
+              <span className={style.label}>Tax {((PPN - 1) * 100).toFixed(0)}%</span>
               <span className={style.value}>Rp {formatCurrency(tax || 0)}</span>
             </Skeleton>
 
-- 
cgit v1.2.3

