limit the range for retryCount

feature/default_network_editable
frankiebee 7 years ago
parent de0cd6e663
commit 6086bcdf0d
  1. 2
      app/scripts/migrations/017.js

@ -30,7 +30,7 @@ function transformState (state) {
const transactions = newState.TransactionController.transactions const transactions = newState.TransactionController.transactions
newState.TransactionController.transactions = transactions.map((txMeta) => { newState.TransactionController.transactions = transactions.map((txMeta) => {
if (!txMeta.status === 'failed') return txMeta if (!txMeta.status === 'failed') return txMeta
if (txMeta.retryCount > 0) { if (txMeta.retryCount > 0 && txMeta.retryCount < 2) {
txMeta.status = 'submitted' txMeta.status = 'submitted'
delete txMeta.err delete txMeta.err
} }

Loading…
Cancel
Save