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:
parent
de0cd6e663
commit
6086bcdf0d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user