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 ( ); }