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

