mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fix goHome
This commit is contained in:
parent
39424cdf45
commit
f52ef5d496
@ -473,8 +473,12 @@ function cancelTx (txData) {
|
||||
|
||||
function cancelAllTx (txsData) {
|
||||
return (dispatch) => {
|
||||
txsData.forEach((txData) => dispatch(actions.cancelTx(txData)))
|
||||
dispatch(actions.goHome())
|
||||
txsData.forEach((txData, i) => {
|
||||
background.cancelTransaction(txData.id, () => {
|
||||
dispatch(actions.completedTx(txData.id))
|
||||
i === txsData.length - 1 ? dispatch(actions.goHome()) : null
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user