From 9e951946275fbfb1e7dfc03a21892525fd2f9db5 Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Sun, 5 Apr 2026 16:28:40 +0200 Subject: [PATCH] fix(panel): double negative sign on transaction amounts formatAmount now strips the sign since the renderer already prepends +/- based on TYPE_CONFIG. Raw DB values like "-180" were getting a second "-" prefix, showing as "--180". Co-Authored-By: Claude Opus 4.6 (1M context) --- panel/src/pages/Transactions.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panel/src/pages/Transactions.tsx b/panel/src/pages/Transactions.tsx index 0e3172f..f7c0d48 100644 --- a/panel/src/pages/Transactions.tsx +++ b/panel/src/pages/Transactions.tsx @@ -63,7 +63,8 @@ const PAGE_SIZES = [25, 50, 100]; function formatAmount(amount: string): string { const n = BigInt(amount); - return n.toLocaleString(); + const abs = n < 0n ? -n : n; + return abs.toLocaleString(); } function formatDate(iso: string): string {