aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-15 10:39:35 -0700
committerAdam Soltys <[email protected]>2026-06-15 10:39:35 -0700
commitae82b671afc9304ad6bf33f34d344dcc52c6caac (patch)
tree0219b637bf15824627fbb10a656d600ffc3a8f27
parent1ec664a0892c074cff25ad59a3678c61ef97c2a2 (diff)
downloadcoinosv3-ae82b671afc9304ad6bf33f34d344dcc52c6caac.tar.gz
coinosv3-ae82b671afc9304ad6bf33f34d344dcc52c6caac.zip
Show confirmed as "Balance"; pending only when present
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
-rw-r--r--src/app.js18
1 files changed, 9 insertions, 9 deletions
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
);
}