From 6b14060fd3a1711b0a5ffa8d55e100ada0e8920f Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Wed, 28 Aug 2019 09:29:31 +0300 Subject: [PATCH] Fixed wrong text data for transactions --- src/components/transaction/view/transactionView.js | 2 +- src/utils/wallet.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/transaction/view/transactionView.js b/src/components/transaction/view/transactionView.js index 13b266354..28d38d08a 100644 --- a/src/components/transaction/view/transactionView.js +++ b/src/components/transaction/view/transactionView.js @@ -78,7 +78,7 @@ class TransactionView extends PureComponent { isBlackText iconName={transactionData.icon} iconType="MaterialIcons" - rightText={`${Math.round(value[0] * 1000) / 1000} ${value[1]}`} + rightText={transactionData.value.trim()} /> } > diff --git a/src/utils/wallet.js b/src/utils/wallet.js index d6e9b5ca9..641192abc 100644 --- a/src/utils/wallet.js +++ b/src/utils/wallet.js @@ -51,7 +51,7 @@ export const groomingTransactionData = (transaction, steemPerMVests, formatNumbe }).replace(',', '.'); result.value = `${sbdPayout > 0 ? `${sbdPayout} SBD` : ''} ${ - steemPayout > 0 ? `${steemPayout} steemPayout` : '' + steemPayout > 0 ? `${steemPayout} STEEM` : '' } ${vestingPayout > 0 ? `${vestingPayout} SP` : ''}`; result.details = author && permlink ? `@${author}/${permlink}` : null;