aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-09 14:49:59 -0700
committerAdam Soltys <[email protected]>2026-10-09 14:49:59 -0700
commita30c16fcaac5c89acc1ace58aff8a6746ab45d05 (patch)
tree8d94172f4d7062002e4cffcfb67508e63eb46a41 /src/app.js
parent70f8866007f8658a3e6b9cd9ba80229b70fd9252 (diff)
downloadcoinosv3-a30c16fcaac5c89acc1ace58aff8a6746ab45d05.tar.gz
coinosv3-a30c16fcaac5c89acc1ace58aff8a6746ab45d05.zip
Amounts: no minus sign on money going out. The word (Sent, Renewal, Exiting…) and the red already say it's a debit — history rows, the transaction details, the sent screens, and on-chain rows (whose negative net printed its own sign). Received keeps its +.
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Vps2H27rhbG9ZqseGfMrc3
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app.js b/src/app.js
index 6a80f8c..dbda72c 100644
--- a/src/app.js
+++ b/src/app.js
@@ -5886,7 +5886,7 @@ function txHistoryItem(tx) {
),
h('div', { style: 'text-align:right' },
// priced at the moment it happened, not at today's number
- h('div', { class: incoming ? 'amount-pos' : 'amount-neg' }, (incoming ? '+' : '') + fmtAmount(tx.net, tx.blockTime)),
+ h('div', { class: incoming ? 'amount-pos' : 'amount-neg' }, (incoming ? '+' : '') + fmtAmount(Math.abs(tx.net), tx.blockTime)),
!incoming && tx.fee ? h('div', { class: 'small faint' }, t('feeShort', { x: fmtAmount(tx.fee, tx.blockTime) })) : null
)
);
@@ -6008,7 +6008,7 @@ function txDetailView(tx) {
h('span', { class: `tag ${tx.confirmed ? 'conf' : 'pending'}` }, tx.confirmed ? t('confirmedTag') : t('pendingTag'))
),
h('div', { class: 'amt', style: 'font-size:30px' },
- h('span', { class: incoming ? 'amount-pos' : 'amount-neg' }, (incoming ? '+' : '') + fmtAmount(tx.net, tx.blockTime)),
+ h('span', { class: incoming ? 'amount-pos' : 'amount-neg' }, (incoming ? '+' : '') + fmtAmount(Math.abs(tx.net), tx.blockTime)),
' ', unitTag('unit')
),
h('div', { class: 'summary col', style: 'gap:0' },