diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-12-07 12:09:32 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-12-07 12:09:32 +0800 |
commit | 81fb9db1bcd08fb4e92d87d0c0905cb02dac63c2 (patch) | |
tree | f4f2af0597eba0c3529e40271137c3a999973cfd /ui/app | |
parent | 97abbc5cbe97157304f27f0f20336b543de62428 (diff) | |
download | tangerine-wallet-browser-81fb9db1bcd08fb4e92d87d0c0905cb02dac63c2.tar tangerine-wallet-browser-81fb9db1bcd08fb4e92d87d0c0905cb02dac63c2.tar.gz tangerine-wallet-browser-81fb9db1bcd08fb4e92d87d0c0905cb02dac63c2.tar.bz2 tangerine-wallet-browser-81fb9db1bcd08fb4e92d87d0c0905cb02dac63c2.tar.lz tangerine-wallet-browser-81fb9db1bcd08fb4e92d87d0c0905cb02dac63c2.tar.xz tangerine-wallet-browser-81fb9db1bcd08fb4e92d87d0c0905cb02dac63c2.tar.zst tangerine-wallet-browser-81fb9db1bcd08fb4e92d87d0c0905cb02dac63c2.zip |
View tx after editing state to unconfirmed
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/actions.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index 35eb4b0c8..0dc4f3832 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -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)) + }) + } } // |