aboutsummaryrefslogtreecommitdiffstats
path: root/old-ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-03-14 08:38:27 +0800
committerDan <danjm.com@gmail.com>2018-03-14 08:38:27 +0800
commit80a2e59194d3c5e5dc5fa098a5c022ae5dc30848 (patch)
tree1a82dbf87753e4ab2e99bed20aef627ff5792751 /old-ui
parentc52253bb0eb8ab1c7c7e9c0e7002d5ada42d53d6 (diff)
downloadtangerine-wallet-browser-80a2e59194d3c5e5dc5fa098a5c022ae5dc30848.tar
tangerine-wallet-browser-80a2e59194d3c5e5dc5fa098a5c022ae5dc30848.tar.gz
tangerine-wallet-browser-80a2e59194d3c5e5dc5fa098a5c022ae5dc30848.tar.bz2
tangerine-wallet-browser-80a2e59194d3c5e5dc5fa098a5c022ae5dc30848.tar.lz
tangerine-wallet-browser-80a2e59194d3c5e5dc5fa098a5c022ae5dc30848.tar.xz
tangerine-wallet-browser-80a2e59194d3c5e5dc5fa098a5c022ae5dc30848.tar.zst
tangerine-wallet-browser-80a2e59194d3c5e5dc5fa098a5c022ae5dc30848.zip
Correctly set latest submitted retry with nonces that matches others in old-ui transaction-list-item.
Diffstat (limited to 'old-ui')
-rw-r--r--old-ui/app/components/transaction-list-item.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/old-ui/app/components/transaction-list-item.js b/old-ui/app/components/transaction-list-item.js
index 3881d8c1c..61db8b350 100644
--- a/old-ui/app/components/transaction-list-item.js
+++ b/old-ui/app/components/transaction-list-item.js
@@ -34,7 +34,7 @@ TransactionListItem.prototype.showRetryButton = function () {
const currentNonce = txParams.nonce
const currentNonceTxs = transactions.filter(tx => tx.txParams.nonce === currentNonce)
const currentNonceSubmittedTxs = currentNonceTxs.filter(tx => tx.status === 'submitted')
- const lastSubmittedTxWithCurrentNonce = currentNonceSubmittedTxs[currentNonceSubmittedTxs.length - 1]
+ const lastSubmittedTxWithCurrentNonce = currentNonceSubmittedTxs[0]
const currentTxIsLatestWithNonce = lastSubmittedTxWithCurrentNonce
&& lastSubmittedTxWithCurrentNonce.id === transaction.id