mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix speed up button not showing for transactions with the lowest nonce (#5925)
This commit is contained in:
parent
8cb8b9b408
commit
05e8753641
@ -62,7 +62,7 @@ export default class TransactionList extends PureComponent {
|
|||||||
</div>
|
</div>
|
||||||
{
|
{
|
||||||
pendingTransactions.map((transactionGroup, index) => (
|
pendingTransactions.map((transactionGroup, index) => (
|
||||||
this.renderTransaction(transactionGroup, index, true, index === pendingLength - 1)
|
this.renderTransaction(transactionGroup, index, true)
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
</div>
|
</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 { selectedToken, assetImages } = this.props
|
||||||
const { transactions = [] } = transactionGroup
|
const { transactions = [] } = transactionGroup
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ export default class TransactionList extends PureComponent {
|
|||||||
<TransactionListItem
|
<TransactionListItem
|
||||||
transactionGroup={transactionGroup}
|
transactionGroup={transactionGroup}
|
||||||
key={`${transactionGroup.nonce}:${index}`}
|
key={`${transactionGroup.nonce}:${index}`}
|
||||||
showRetry={isPendingTx && this.shouldShowRetry(transactionGroup, isEarliestNonce)}
|
showRetry={isPendingTx && this.shouldShowRetry(transactionGroup, index === 0)}
|
||||||
showCancel={isPendingTx && this.shouldShowCancel(transactionGroup)}
|
showCancel={isPendingTx && this.shouldShowCancel(transactionGroup)}
|
||||||
token={selectedToken}
|
token={selectedToken}
|
||||||
assetImages={assetImages}
|
assetImages={assetImages}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user