aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-05 11:56:53 -0700
committerAdam Soltys <[email protected]>2026-08-05 11:56:53 -0700
commit1307f8930283393fcf987cfa7e5cfa054676396a (patch)
tree7d31e3355d217ca531f0db8ab95ca59d7d402523 /src/app.js
parent399a100248792fe8d6aaf19849eab3ee3baa1984 (diff)
downloadcoinosv3-1307f8930283393fcf987cfa7e5cfa054676396a.tar.gz
coinosv3-1307f8930283393fcf987cfa7e5cfa054676396a.zip
Spending trusts its own ledger: gifts read persisted ark state, and Savings keeps its pending line to itself
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01M5kFodm9azZJVTQxnkDdKe
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js6
1 files changed, 4 insertions, 2 deletions
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) =>