diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-10-14 07:53:32 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-10-14 07:53:32 +0800 |
commit | aace26c4bda151c71f9f8c73669e789ac258e9ee (patch) | |
tree | c6ec247a3fbaf89469c5eedb82add68e2a81bfdf /ui/app/actions.js | |
parent | 328f8b0cac1e19a2f27ca0272930e393b1e9dc8d (diff) | |
download | tangerine-wallet-browser-aace26c4bda151c71f9f8c73669e789ac258e9ee.tar tangerine-wallet-browser-aace26c4bda151c71f9f8c73669e789ac258e9ee.tar.gz tangerine-wallet-browser-aace26c4bda151c71f9f8c73669e789ac258e9ee.tar.bz2 tangerine-wallet-browser-aace26c4bda151c71f9f8c73669e789ac258e9ee.tar.lz tangerine-wallet-browser-aace26c4bda151c71f9f8c73669e789ac258e9ee.tar.xz tangerine-wallet-browser-aace26c4bda151c71f9f8c73669e789ac258e9ee.tar.zst tangerine-wallet-browser-aace26c4bda151c71f9f8c73669e789ac258e9ee.zip |
Create callback and Clean-up details
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r-- | ui/app/actions.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index 9cacadc0d..1f0d8fc78 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -277,15 +277,17 @@ function signMsg (msgData) { } function signTx (txData) { - _accountManager.setGasMultiplier(txData.gasMultiplier) return (dispatch) => { - web3.eth.sendTransaction(txData, (err, data) => { - dispatch(actions.hideLoadingIndication()) + _accountManager.setGasMultiplier(txData.gasMultiplier, (err) => { if (err) return dispatch(actions.displayWarning(err.message)) - dispatch(actions.hideWarning()) - dispatch(actions.goHome()) + web3.eth.sendTransaction(txData, (err, data) => { + dispatch(actions.hideLoadingIndication()) + if (err) return dispatch(actions.displayWarning(err.message)) + dispatch(actions.hideWarning()) + dispatch(actions.goHome()) + }) + dispatch(this.showConfTxPage()) }) - dispatch(this.showConfTxPage()) } } |