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
1 changed files with 9 additions and 1 deletions

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))
})
}
}
//