From 6fd76c8dc89c5fb4d766a94a47048dde0f0afc83 Mon Sep 17 00:00:00 2001 From: Fringg Date: Wed, 11 Mar 2026 02:17:40 +0300 Subject: [PATCH] fix: display zero-amount transactions with neutral styling Zero-amount transactions (e.g. free tariff switches) now show without +/- sign in neutral gray instead of misleading green +0.00 --- src/pages/Balance.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/pages/Balance.tsx b/src/pages/Balance.tsx index d22e5fe..83a251e 100644 --- a/src/pages/Balance.tsx +++ b/src/pages/Balance.tsx @@ -334,10 +334,15 @@ export default function Balance() { animate="animate" > {transactions.items.map((tx) => { - const isPositive = tx.amount_rubles >= 0; + const isZero = tx.amount_rubles === 0; + const isPositive = tx.amount_rubles > 0; const displayAmount = Math.abs(tx.amount_rubles); - const sign = isPositive ? '+' : '-'; - const colorClass = isPositive ? 'text-success-400' : 'text-error-400'; + const sign = isZero ? '' : isPositive ? '+' : '-'; + const colorClass = isZero + ? 'text-dark-400' + : isPositive + ? 'text-success-400' + : 'text-error-400'; return (