From 0d3d2a8672f1f0fc2661340e86007a85365ed143 Mon Sep 17 00:00:00 2001
From: Miqdad <ahmadmiqdad27@gmail.com>
Date: Tue, 16 Sep 2025 21:31:05 +0700
Subject: <Miqdad> Tracking Error

---
 src/lib/treckingAwb/component/Manifest.jsx | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

(limited to 'src/lib/treckingAwb/component/Manifest.jsx')

diff --git a/src/lib/treckingAwb/component/Manifest.jsx b/src/lib/treckingAwb/component/Manifest.jsx
index 6eb0b0ac..d2896567 100644
--- a/src/lib/treckingAwb/component/Manifest.jsx
+++ b/src/lib/treckingAwb/component/Manifest.jsx
@@ -9,17 +9,24 @@ import { list } from 'postcss';
 import InformationSection from './InformationSection';
 import Link from 'next/link';
 
-function capitalizeFirstLetter(str) {
-  return str.charAt(0).toUpperCase() + str.slice(1);
-}
+// function capitalizeFirstLetter(str) {
+//   return str.charAt(0).toUpperCase() + str.slice(1);
+// }
 
 function capitalizeWords(str) {
+  if (!str || typeof str !== 'string') {
+    return ''; 
+}
   return str
     .split(' ')
     .map((word) => capitalizeFirstLetter(word))
     .join(' ');
 }
 
+function capitalizeFirstLetter(word) {
+  return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();
+}
+
 function mappingLiveTracking(kurir, resi){
   let url = null
   switch (kurir){
-- 
cgit v1.2.3

