From 6e6ec26306de3f7ac7efdd528a92de1e01ae1033 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Tue, 9 Sep 2025 08:25:17 +0700
Subject: <hafid> fix bug website

---
 src/lib/checkout/components/Checkout.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/lib/checkout/components/Checkout.jsx')

diff --git a/src/lib/checkout/components/Checkout.jsx b/src/lib/checkout/components/Checkout.jsx
index e21ea266..ca9767bc 100644
--- a/src/lib/checkout/components/Checkout.jsx
+++ b/src/lib/checkout/components/Checkout.jsx
@@ -1667,7 +1667,7 @@ const SectionAddress = ({ address, label, url }) => (
 );
 
 const SectionValidation = ({ address }) =>
-  address?.stateId == 0 && (
+  address?.stateId === 0 && (
     <BottomPopup active={true} title='Update Alamat'>
       <div className='leading-7 text-gray_r-12/80'>
         Mohon untuk memperbarui alamat Anda dengan mengklik tombol di bawah ini.{' '}
-- 
cgit v1.2.3


From cdc1be823002c68f8e7024317a1349853690576e Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Tue, 9 Sep 2025 08:30:39 +0700
Subject: <hafid> fix bug website

---
 src/lib/checkout/components/Checkout.jsx | 42 +++++++++++---------------------
 1 file changed, 14 insertions(+), 28 deletions(-)

(limited to 'src/lib/checkout/components/Checkout.jsx')

diff --git a/src/lib/checkout/components/Checkout.jsx b/src/lib/checkout/components/Checkout.jsx
index ca9767bc..e02dd9c8 100644
--- a/src/lib/checkout/components/Checkout.jsx
+++ b/src/lib/checkout/components/Checkout.jsx
@@ -1325,34 +1325,20 @@ const Checkout = () => {
               {selectedCourierId == SELF_PICKUP_ID && (
                 <PickupAddress label='Alamat Pickup' />
               )}
-              {selectedCarrierId != SELF_PICKUP_ID && (
-                <>
-                  {!selectedAddress?.shipping || !selectedAddress?.invoicing ? (
-                    <div className='p-4 border rounded-xl text-center text-red-600 bg-red-50'>
-                      <p>⚠️ Anda belum memiliki alamat yang terdaftar.</p>
-                      <Link
-                        href='/my/address?select=shipping'
-                        className='mt-2 inline-block px-4 py-2 bg-solid-red text-white rounded-lg'
-                      >
-                        Tambahkan Alamat
-                      </Link>
-                    </div>
-                  ) : (
-                    <Skeleton isLoaded minHeight={290}>
-                      <SectionAddress
-                        address={selectedAddress.shipping}
-                        label='Alamat Pengiriman'
-                        url='/my/address?select=shipping'
-                      />
-                      <Divider />
-                      <SectionAddress
-                        address={selectedAddress.invoicing}
-                        label='Alamat Penagihan'
-                        url='/my/address?select=invoice'
-                      />
-                    </Skeleton>
-                  )}
-                </>
+              {selectedCarrierId != SELF_PICKUP_ID &&  (
+                <Skeleton isLoaded minHeight={290}>
+                  <SectionAddress
+                    address={selectedAddress.shipping}
+                    label='Alamat Pengiriman'
+                    url='/my/address?select=shipping'
+                  />
+                  <Divider />
+                  <SectionAddress
+                    address={selectedAddress.invoicing}
+                    label='Alamat Penagihan'
+                    url='/my/address?select=invoice'
+                  />
+                </Skeleton>
               )}
               {products && <SectionExpedition products={products} />}
               <Divider />
-- 
cgit v1.2.3

