diff options
author | Chi Kei Chan <chikeichan@gmail.com> | 2017-09-27 00:15:14 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-09-27 00:15:14 +0800 |
commit | bdd1e58e552b50ab5d060a1671d29cf3c2fdf7fa (patch) | |
tree | c8f0b0c0e5a620aa4493dbdc532b3ba828f58f69 /ui | |
parent | 7102772c3a4a73d594ccc20e760defa2999f2d3f (diff) | |
download | tangerine-wallet-browser-bdd1e58e552b50ab5d060a1671d29cf3c2fdf7fa.tar tangerine-wallet-browser-bdd1e58e552b50ab5d060a1671d29cf3c2fdf7fa.tar.gz tangerine-wallet-browser-bdd1e58e552b50ab5d060a1671d29cf3c2fdf7fa.tar.bz2 tangerine-wallet-browser-bdd1e58e552b50ab5d060a1671d29cf3c2fdf7fa.tar.lz tangerine-wallet-browser-bdd1e58e552b50ab5d060a1671d29cf3c2fdf7fa.tar.xz tangerine-wallet-browser-bdd1e58e552b50ab5d060a1671d29cf3c2fdf7fa.tar.zst tangerine-wallet-browser-bdd1e58e552b50ab5d060a1671d29cf3c2fdf7fa.zip |
Return null if transaction.key is shapeshift
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/tx-list.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/app/components/tx-list.js b/ui/app/components/tx-list.js index f817d03a9..ef5cfa245 100644 --- a/ui/app/components/tx-list.js +++ b/ui/app/components/tx-list.js @@ -47,7 +47,6 @@ TxList.prototype.render = function () { TxList.prototype.renderTransaction = function () { const { txsToRender, conversionRate } = this.props - return txsToRender.length ? txsToRender.map((transaction, i) => this.renderTransactionListItem(transaction, conversionRate)) : [h('div.tx-list-item.tx-list-item--empty', [ 'No Transactions' ])] @@ -55,6 +54,12 @@ TxList.prototype.renderTransaction = function () { // TODO: Consider moving TxListItem into a separate component TxList.prototype.renderTransactionListItem = function (transaction, conversionRate) { + // console.log({transaction}) + // refer to transaction-list.js:line 58 + if (transaction.key === 'shapeshift') { + return null + } + const props = { dateString: formatDate(transaction.time), address: transaction.txParams.to, |