mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +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
|
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…
x
Reference in New Issue
Block a user