From 71ca9d6c85871b6bcb2976ed4911032aab4d32e7 Mon Sep 17 00:00:00 2001
From: trisusilo48 <tri.susilo@altama.co.id>
Date: Thu, 24 Apr 2025 13:53:32 +0700
Subject: fixing revisi renca

---
 src/lib/transaction/components/Transaction.jsx | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

(limited to 'src/lib/transaction/components/Transaction.jsx')

diff --git a/src/lib/transaction/components/Transaction.jsx b/src/lib/transaction/components/Transaction.jsx
index 3853ea79..867de577 100644
--- a/src/lib/transaction/components/Transaction.jsx
+++ b/src/lib/transaction/components/Transaction.jsx
@@ -283,8 +283,6 @@ const Transaction = ({ id }) => {
     }
   };
 
-  console.log('ini transaction', transaction.data);
-
   return (
     transaction.data?.name && (
       <>
@@ -764,13 +762,19 @@ const Transaction = ({ id }) => {
                       key={airway?.id}
                       className='border border-gray_r-6 rounded p-3'
                     >
-                      <InformationSection
-                        manifests={airway}
-                        source='transaction'
-                      />
+                      <InformationSection manifests={airway} />
                       <div className='p-4'>
-                        <button className='bg-transparent text-red-600 hover:underline p-0 font-semibold' onClick={() => setIdAWB(airway?.id)}>
-                          Lacak Pegiriman
+                        <button
+                          className='bg-transparent text-red-600 hover:underline p-0 font-semibold'
+                          onClick={() => {
+                            if (airway?.waybillNumber == '-') {
+                              toast.error('Nomor Resi belum tersedia');
+                              return;
+                            }
+                            setIdAWB(airway.id);
+                          }}
+                        >
+                          Lacak Pengiriman
                         </button>
                       </div>
                     </div>
-- 
cgit v1.2.3

