1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

View tx after editing state to unconfirmed

This commit is contained in:
Dan Finlay 2017-12-06 23:09:32 -05:00
parent 97abbc5cbe
commit 81fb9db1bc

View File

@ -762,7 +762,15 @@ function markAccountsFound () {
function retryTransaction (txId) {
log.debug(`background.retryTransaction`)
return callBackgroundThenUpdate(background.retryTransaction, txId)
return (dispatch) => {
background.retryTransaction(txId, (err) => {
if (err) {
return dispatch(actions.displayWarning(err.message))
}
forceUpdateMetamaskState(dispatch)
dispatch(actions.viewPendingTx(txId))
})
}
}
//