aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/tx-list.js
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2018-01-13 05:41:03 +0800
committerGitHub <noreply@github.com>2018-01-13 05:41:03 +0800
commit71a308d98b541b05ffabf8f63085e3cbd8bf61b7 (patch)
tree5f360e4a65a0768817913e99840e3705439432e2 /ui/app/components/tx-list.js
parent0f4bfcb02e3a04f044a571e01a4977dae2afec8e (diff)
parentbdcee058dc278c46c828f376476f121417481385 (diff)
downloaddexon-wallet-71a308d98b541b05ffabf8f63085e3cbd8bf61b7.tar.gz
dexon-wallet-71a308d98b541b05ffabf8f63085e3cbd8bf61b7.tar.zst
dexon-wallet-71a308d98b541b05ffabf8f63085e3cbd8bf61b7.zip
Merge branch 'uat' into cb-388
Diffstat (limited to 'ui/app/components/tx-list.js')
-rw-r--r--ui/app/components/tx-list.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/ui/app/components/tx-list.js b/ui/app/components/tx-list.js
index 70722f43..50e328da 100644
--- a/ui/app/components/tx-list.js
+++ b/ui/app/components/tx-list.js
@@ -52,7 +52,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))
+ ? txsToRender.map((transaction, i) => this.renderTransactionListItem(transaction, conversionRate, i))
: [h(
'div.tx-list-item.tx-list-item--empty',
{ key: 'tx-list-none' },
@@ -61,12 +61,16 @@ TxList.prototype.renderTransaction = function () {
}
// TODO: Consider moving TxListItem into a separate component
-TxList.prototype.renderTransactionListItem = function (transaction, conversionRate) {
+TxList.prototype.renderTransactionListItem = function (transaction, conversionRate, index) {
// console.log({transaction})
// refer to transaction-list.js:line 58
if (transaction.key === 'shapeshift') {
- return h(ShiftListItem, transaction)
+ return h('div', {
+ key: `shapeshift${index}`,
+ }, [
+ h(ShiftListItem, transaction),
+ ])
}
const props = {