diff options
| author | Adam Soltys <[email protected]> | 2026-06-15 10:39:35 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-15 10:39:35 -0700 |
| commit | ae82b671afc9304ad6bf33f34d344dcc52c6caac (patch) | |
| tree | 0219b637bf15824627fbb10a656d600ffc3a8f27 /src/app.js | |
| parent | 1ec664a0892c074cff25ad59a3678c61ef97c2a2 (diff) | |
| download | coinosv3-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]>
Diffstat (limited to 'src/app.js')
| -rw-r--r-- | src/app.js | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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 ); } |
