From fa60ea8fbd9b99ccaddd7c2c86a0e11dbadc5076 Mon Sep 17 00:00:00 2001 From: null Date: Thu, 28 May 2026 01:38:18 -0500 Subject: [PATCH] fix paid coloum --- client/pages/TrackerPage.jsx | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/client/pages/TrackerPage.jsx b/client/pages/TrackerPage.jsx index 81b555a..8f29d58 100644 --- a/client/pages/TrackerPage.jsx +++ b/client/pages/TrackerPage.jsx @@ -456,6 +456,13 @@ function PaymentProgress({ row, threshold, onOpen, compact = false }) { ? 'bg-amber-500' : 'bg-muted-foreground/40'; + const amountLabel = (() => { + if (summary.paid === 0) return '—'; + if (summary.overpaid > 0) return `${fmt(summary.paidTowardDue)} · overpaid`; + if (summary.remaining > 0) return `${fmt(summary.paidTowardDue)} paid`; + return fmt(summary.paidTowardDue); + })(); + return ( ); }