From 4391fe1de7d7424ef7b2350075cce72f923f1d1b Mon Sep 17 00:00:00 2001 From: rstubryan Date: Sat, 17 Jan 2026 20:37:43 +0700 Subject: [PATCH] refactor(FE): Capitalize payment status text --- .../pages/report/finance/tab/CustomerPaymentTab.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/pages/report/finance/tab/CustomerPaymentTab.tsx b/src/components/pages/report/finance/tab/CustomerPaymentTab.tsx index 0e3afe40..04c67151 100644 --- a/src/components/pages/report/finance/tab/CustomerPaymentTab.tsx +++ b/src/components/pages/report/finance/tab/CustomerPaymentTab.tsx @@ -106,7 +106,11 @@ const CustomerPaymentTab = () => { }; const getPaymentStatusText = (notes: string) => { - return notes; + return notes + .toLowerCase() + .split(' ') + .map((word) => word.charAt(0).toUpperCase() + word.slice(1)) + .join(' '); }; // ===== FILTER HANDLERS ===== @@ -510,7 +514,7 @@ const CustomerPaymentTab = () => { status: getPaymentStatusIndicatorColor(value), }} > - {getPaymentStatusText(value)} + {getPaymentStatusText(value)} ); },