aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@users.noreply.github.com>2018-12-13 10:33:46 +0800
committerDan Finlay <542863+danfinlay@users.noreply.github.com>2018-12-13 10:33:46 +0800
commit05e8753641119b7350219e312fa55935bc5abc74 (patch)
tree3e4dec2c120a3171b17fd9a95946ec55dafacb5d /ui
parent8cb8b9b40863a8c305a9cb947aab02792889f9ce (diff)
downloadtangerine-wallet-browser-05e8753641119b7350219e312fa55935bc5abc74.tar.gz
tangerine-wallet-browser-05e8753641119b7350219e312fa55935bc5abc74.tar.zst
tangerine-wallet-browser-05e8753641119b7350219e312fa55935bc5abc74.zip
Fix speed up button not showing for transactions with the lowest nonce (#5925)
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/transaction-list/transaction-list.component.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/transaction-list/transaction-list.component.js b/ui/app/components/transaction-list/transaction-list.component.js
index c1e3b3d1c..ddab3b290 100644
--- a/ui/app/components/transaction-list/transaction-list.component.js
+++ b/ui/app/components/transaction-list/transaction-list.component.js
@@ -62,7 +62,7 @@ export default class TransactionList extends PureComponent {
</div>
{
pendingTransactions.map((transactionGroup, index) => (
- this.renderTransaction(transactionGroup, index, true, index === pendingLength - 1)
+ this.renderTransaction(transactionGroup, index, true)
))
}
</div>
@@ -84,7 +84,7 @@ export default class TransactionList extends PureComponent {
)
}
- renderTransaction (transactionGroup, index, isPendingTx = false, isEarliestNonce = false) {
+ renderTransaction (transactionGroup, index, isPendingTx = false) {
const { selectedToken, assetImages } = this.props
const { transactions = [] } = transactionGroup
@@ -98,7 +98,7 @@ export default class TransactionList extends PureComponent {
<TransactionListItem
transactionGroup={transactionGroup}
key={`${transactionGroup.nonce}:${index}`}
- showRetry={isPendingTx && this.shouldShowRetry(transactionGroup, isEarliestNonce)}
+ showRetry={isPendingTx && this.shouldShowRetry(transactionGroup, index === 0)}
showCancel={isPendingTx && this.shouldShowCancel(transactionGroup)}
token={selectedToken}
assetImages={assetImages}