From 74e57a35c025465e357b74d8450fe940943e8e5c Mon Sep 17 00:00:00 2001 From: megaproxy Date: Tue, 21 Apr 2026 15:50:28 +0000 Subject: [PATCH] Fix Net Worth tab crash and rebuild for balance sheet endpoint - Replace invalid currency="%"/currency="" StatCard calls that caused Intl.NumberFormat to throw RangeError and blank the page - Render 30d change % and snapshot count as plain inline cards Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/pages/reports/ReportsPage.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/reports/ReportsPage.tsx b/frontend/src/pages/reports/ReportsPage.tsx index 479595e..4826032 100644 --- a/frontend/src/pages/reports/ReportsPage.tsx +++ b/frontend/src/pages/reports/ReportsPage.tsx @@ -247,8 +247,16 @@ function NetWorthTab() {
- - +
+

30d Change

+

= 0 ? "text-success" : "text-destructive")}> + {Number(data.change_30d_pct) >= 0 ? "+" : ""}{Number(data.change_30d_pct).toFixed(2)}% +

+
+
+

History

+

{data.points.length} snapshot{data.points.length !== 1 ? "s" : ""}

+
{data.points.length === 0 ? (