From ae82b671afc9304ad6bf33f34d344dcc52c6caac Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 15 Jun 2026 10:39:35 -0700 Subject: Show confirmed as "Balance"; pending only when present Co-Authored-By: Claude Opus 4.8 (1M context) --- src/app.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/app.js') diff --git a/src/app.js b/src/app.js index fad9fda..a298fad 100644 --- a/src/app.js +++ b/src/app.js @@ -564,15 +564,15 @@ function balanceCard() { return h( 'div', { class: 'card balance' }, - h('div', { class: 'small faint', style: 'text-transform:uppercase;letter-spacing:.05em' }, 'Total balance'), - h('div', { class: 'amt', style: firstLoad ? 'opacity:.3' : '' }, fmtAmount(wallet.total), ' ', unitTag('unit')), - h( - 'div', - { class: 'split' }, - h('div', {}, h('div', { class: 'k' }, 'Confirmed'), h('div', { class: 'v' }, fmtAmount(wallet.confirmed), ' ', unitTag())), - wallet.pending > 0 && - h('div', {}, h('div', { class: 'k' }, 'Pending'), h('div', { class: 'v pending' }, fmtAmount(wallet.pending), ' ', unitTag())) - ) + h('div', { class: 'small faint', style: 'text-transform:uppercase;letter-spacing:.05em' }, 'Balance'), + h('div', { class: 'amt', style: firstLoad ? 'opacity:.3' : '' }, fmtAmount(wallet.confirmed), ' ', unitTag('unit')), + wallet.pending > 0 + ? h( + 'div', + { class: 'split' }, + h('div', {}, h('div', { class: 'k' }, 'Pending'), h('div', { class: 'v pending' }, fmtAmount(wallet.pending), ' ', unitTag())) + ) + : null ); } -- cgit v1.2.3