From a6439f10696c7049a701a2d4b28c9f29ae845cf9 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Tue, 14 Aug 2018 12:06:52 +0200 Subject: [PATCH] fix(activity): correct tooltips in activity log Fix a bug where we were showing transaction amounts as transaction fee. Fix #662 --- .../components/components/Invoice/Invoice.js | 9 +++++++-- .../components/components/Payment/Payment.js | 8 +++----- .../components/Transaction/Transaction.js | 13 ++++++++----- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/app/routes/activity/components/components/Invoice/Invoice.js b/app/routes/activity/components/components/Invoice/Invoice.js index 19ff1861..dfed4695 100644 --- a/app/routes/activity/components/components/Invoice/Invoice.js +++ b/app/routes/activity/components/components/Invoice/Invoice.js @@ -32,8 +32,13 @@ const Invoice = ({ invoice, ticker, currentTicker, showActivityModal, currencyNa -
- +
+ + {currencyName} diff --git a/app/routes/activity/components/components/Payment/Payment.js b/app/routes/activity/components/components/Payment/Payment.js index 565aa95c..4ad30f97 100644 --- a/app/routes/activity/components/components/Payment/Payment.js +++ b/app/routes/activity/components/components/Payment/Payment.js @@ -35,15 +35,13 @@ const Payment = ({ payment, ticker, currentTicker, showActivityModal, nodes, cur {payment.creation_date * 1000}
-
- +
+ - {currencyName} - - ${btc.convert('sats', 'usd', payment.value, currentTicker.price_usd)} - + ${btc.convert('sats', 'usd', payment.value, currentTicker.price_usd)}
) diff --git a/app/routes/activity/components/components/Transaction/Transaction.js b/app/routes/activity/components/components/Transaction/Transaction.js index 45ff6a4a..c4c303d4 100644 --- a/app/routes/activity/components/components/Transaction/Transaction.js +++ b/app/routes/activity/components/components/Transaction/Transaction.js @@ -27,8 +27,13 @@ const Transaction = ({ transaction, ticker, currentTicker, showActivityModal, cu {transaction.time_stamp * 1000} -
- +
+ {transaction.received ? '+' : '-'} @@ -39,9 +44,7 @@ const Transaction = ({ transaction, ticker, currentTicker, showActivityModal, cu /> {currencyName} - - ${btc.convert('sats', 'usd', transaction.amount, currentTicker.price_usd)} - + ${btc.convert('sats', 'usd', transaction.amount, currentTicker.price_usd)}
)