aboutsummaryrefslogtreecommitdiffstats
path: root/old-ui
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2018-08-07 16:53:13 +0800
committerfrankiebee <frankie.diamond@gmail.com>2018-08-07 16:53:13 +0800
commitcbade51ebdb7b6f8f3597f0fa8c43c9bbec452f2 (patch)
tree9f4397462bb1b808b7f4fe7967a600231aba85ee /old-ui
parent115d3c9aaf0f61b0b6b54e9143f632cd48adcca2 (diff)
parent564fb9f56357910dc658c3c45b35688958ed262c (diff)
downloadtangerine-wallet-browser-cbade51ebdb7b6f8f3597f0fa8c43c9bbec452f2.tar
tangerine-wallet-browser-cbade51ebdb7b6f8f3597f0fa8c43c9bbec452f2.tar.gz
tangerine-wallet-browser-cbade51ebdb7b6f8f3597f0fa8c43c9bbec452f2.tar.bz2
tangerine-wallet-browser-cbade51ebdb7b6f8f3597f0fa8c43c9bbec452f2.tar.lz
tangerine-wallet-browser-cbade51ebdb7b6f8f3597f0fa8c43c9bbec452f2.tar.xz
tangerine-wallet-browser-cbade51ebdb7b6f8f3597f0fa8c43c9bbec452f2.tar.zst
tangerine-wallet-browser-cbade51ebdb7b6f8f3597f0fa8c43c9bbec452f2.zip
Merge branch 'develop' of https://github.com/MetaMask/metamask-extension into network-remove-provider-engine-tests
Diffstat (limited to 'old-ui')
-rw-r--r--old-ui/app/components/transaction-list-item.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/old-ui/app/components/transaction-list-item.js b/old-ui/app/components/transaction-list-item.js
index f479ce666..015ef6ba6 100644
--- a/old-ui/app/components/transaction-list-item.js
+++ b/old-ui/app/components/transaction-list-item.js
@@ -36,7 +36,7 @@ TransactionListItem.prototype.showRetryButton = function () {
return false
}
- let currentTxIsLatest = false
+ let currentTxSharesEarliestNonce = false
const currentNonce = txParams.nonce
const currentNonceTxs = transactions.filter(tx => tx.txParams.nonce === currentNonce)
const currentNonceSubmittedTxs = currentNonceTxs.filter(tx => tx.status === 'submitted')
@@ -45,14 +45,14 @@ TransactionListItem.prototype.showRetryButton = function () {
const currentTxIsLatestWithNonce = lastSubmittedTxWithCurrentNonce &&
lastSubmittedTxWithCurrentNonce.id === transaction.id
if (currentSubmittedTxs.length > 0) {
- const lastTx = currentSubmittedTxs.reduce((tx1, tx2) => {
+ const earliestSubmitted = currentSubmittedTxs.reduce((tx1, tx2) => {
if (tx1.submittedTime < tx2.submittedTime) return tx1
return tx2
})
- currentTxIsLatest = lastTx.id === transaction.id
+ currentTxSharesEarliestNonce = currentNonce === earliestSubmitted.txParams.nonce
}
- return currentTxIsLatestWithNonce && Date.now() - submittedTime > 30000 && currentTxIsLatest
+ return currentTxSharesEarliestNonce && currentTxIsLatestWithNonce && Date.now() - submittedTime > 30000
}
TransactionListItem.prototype.render = function () {