aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/tx-list.js
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2018-02-09 08:40:15 +0800
committerAlexander Tseung <alextsg@users.noreply.github.com>2018-02-09 08:40:15 +0800
commitc8c2dfdc0f5d3cf68b5bd3b3ebf8bf6799c640c2 (patch)
tree8cfaca30ca07fc35ac3dda8c5bb730fc1d6b6179 /ui/app/components/tx-list.js
parentf39222c9afd9dcab4c6234940eb9a9cb06dbc6f0 (diff)
downloadtangerine-wallet-browser-c8c2dfdc0f5d3cf68b5bd3b3ebf8bf6799c640c2.tar.gz
tangerine-wallet-browser-c8c2dfdc0f5d3cf68b5bd3b3ebf8bf6799c640c2.tar.zst
tangerine-wallet-browser-c8c2dfdc0f5d3cf68b5bd3b3ebf8bf6799c640c2.zip
Fixes shapeshift txs so that they render in tx list. (#3208)
Diffstat (limited to 'ui/app/components/tx-list.js')
-rw-r--r--ui/app/components/tx-list.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/ui/app/components/tx-list.js b/ui/app/components/tx-list.js
index 84cd0f093..1729e6a6f 100644
--- a/ui/app/components/tx-list.js
+++ b/ui/app/components/tx-list.js
@@ -50,6 +50,7 @@ TxList.prototype.render = function () {
TxList.prototype.renderTransaction = function () {
const { txsToRender, conversionRate } = this.props
+
return txsToRender.length
? txsToRender.map((transaction, i) => this.renderTransactionListItem(transaction, conversionRate, i))
: [h(
@@ -65,11 +66,7 @@ TxList.prototype.renderTransactionListItem = function (transaction, conversionRa
// refer to transaction-list.js:line 58
if (transaction.key === 'shapeshift') {
- return h('div', {
- key: `shapeshift${index}`,
- }, [
- h(ShiftListItem, transaction),
- ])
+ return h(ShiftListItem, { ...transaction, key: `shapeshift${index}` })
}
const props = {