diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-01-06 03:03:30 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-01-06 03:03:30 +0800 |
commit | 7659f5894a76bb905529d7e5ea88a156d06373d2 (patch) | |
tree | e9c734bec0658c266670810bbfd243e80f03c9f4 /app/scripts | |
parent | cf6817092b92930ab96e1c9e610669b485b384ff (diff) | |
download | tangerine-wallet-browser-7659f5894a76bb905529d7e5ea88a156d06373d2.tar tangerine-wallet-browser-7659f5894a76bb905529d7e5ea88a156d06373d2.tar.gz tangerine-wallet-browser-7659f5894a76bb905529d7e5ea88a156d06373d2.tar.bz2 tangerine-wallet-browser-7659f5894a76bb905529d7e5ea88a156d06373d2.tar.lz tangerine-wallet-browser-7659f5894a76bb905529d7e5ea88a156d06373d2.tar.xz tangerine-wallet-browser-7659f5894a76bb905529d7e5ea88a156d06373d2.tar.zst tangerine-wallet-browser-7659f5894a76bb905529d7e5ea88a156d06373d2.zip |
Combine two identical then blocks
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/metamask-controller.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index d520a59ad..02e65bf10 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -194,15 +194,13 @@ module.exports = class MetamaskController { }) .then((rawTx) => { cb(null, rawTx) + this.sendUpdate() + this.txManager.emit(`${txParams.metamaskId}:signingComplete`) }) .catch((err) => { console.error(err) cb(err) }) - .then(() => { - this.sendUpdate() - this.txManager.emit(`${txParams.metamaskId}:signingComplete`) - }) }, // msg signing |