From 1307f8930283393fcf987cfa7e5cfa054676396a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 5 Aug 2026 11:56:53 -0700 Subject: Spending trusts its own ledger: gifts read persisted ark state, and Savings keeps its pending line to itself Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01M5kFodm9azZJVTQxnkDdKe --- src/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/app.js') diff --git a/src/app.js b/src/app.js index 1a89ac7..d4ac31a 100644 --- a/src/app.js +++ b/src/app.js @@ -2525,9 +2525,11 @@ function balanceCard() { h('div', { class: 'amt', style: firstLoad ? 'opacity:.3' : '' }, firstLoad ? h('span', { class: 'spinner sm', style: 'margin-right:8px' }) : null, animatedAmount('bal:' + sel, isSpending ? spending : saving), ' ', unitTag('unit')), - pending > 0 || featLines.length + (pending > 0 && !isSpending) || featLines.length ? h('div', { class: 'split' }, - pending > 0 + // Pending incoming is an on-chain fact — it belongs to the Saving + // face, not to whichever account happens to be showing. + pending > 0 && !isSpending ? h('div', {}, h('div', { class: 'k' }, t('pending')), h('div', { class: 'v pending' }, fmtAmount(pending), ' ', unitTag())) : null, ...featLines.map((l) => -- cgit v1.2.3