|
|
@ -473,8 +473,12 @@ function cancelTx (txData) { |
|
|
|
|
|
|
|
|
|
|
|
function cancelAllTx (txsData) { |
|
|
|
function cancelAllTx (txsData) { |
|
|
|
return (dispatch) => { |
|
|
|
return (dispatch) => { |
|
|
|
txsData.forEach((txData) => dispatch(actions.cancelTx(txData))) |
|
|
|
txsData.forEach((txData, i) => { |
|
|
|
dispatch(actions.goHome()) |
|
|
|
background.cancelTransaction(txData.id, () => { |
|
|
|
|
|
|
|
dispatch(actions.completedTx(txData.id)) |
|
|
|
|
|
|
|
i === txsData.length - 1 ? dispatch(actions.goHome()) : null |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//
|
|
|
|
//
|
|
|
|