1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

limit the range for retryCount

This commit is contained in:
frankiebee 2017-07-12 20:01:07 -07:00
parent de0cd6e663
commit 6086bcdf0d

View File

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