Correctly set latest submitted retry with nonces that matches others in old-ui transaction-list-item.

feature/default_network_editable
Dan 7 years ago
parent c52253bb0e
commit 80a2e59194
  1. 2
      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

Loading…
Cancel
Save