mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix tx-list-item submitted check.
This commit is contained in:
parent
bf3c5add08
commit
0d33aed20e
@ -185,7 +185,7 @@ TxListItem.prototype.showRetryButton = function () {
|
|||||||
} = this.props
|
} = this.props
|
||||||
const currentNonce = txParams.nonce
|
const currentNonce = txParams.nonce
|
||||||
const currentNonceTxs = selectedAddressTxList.filter(tx => tx.txParams.nonce === currentNonce)
|
const currentNonceTxs = selectedAddressTxList.filter(tx => tx.txParams.nonce === currentNonce)
|
||||||
const currentNonceSubmittedTxs = currentNonceTxs.filter(tx => transactionStatus === 'submitted')
|
const currentNonceSubmittedTxs = currentNonceTxs.filter(tx => tx.status === 'submitted')
|
||||||
const lastSubmittedTxWithCurrentNonce = currentNonceSubmittedTxs[currentNonceSubmittedTxs.length - 1]
|
const lastSubmittedTxWithCurrentNonce = currentNonceSubmittedTxs[currentNonceSubmittedTxs.length - 1]
|
||||||
const currentTxIsLatestWithNonce = lastSubmittedTxWithCurrentNonce
|
const currentTxIsLatestWithNonce = lastSubmittedTxWithCurrentNonce
|
||||||
&& lastSubmittedTxWithCurrentNonce.id === transactionId
|
&& lastSubmittedTxWithCurrentNonce.id === transactionId
|
||||||
|
Loading…
Reference in New Issue
Block a user