aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-01-06 03:03:30 +0800
committerDan Finlay <dan@danfinlay.com>2017-01-06 03:03:30 +0800
commit7659f5894a76bb905529d7e5ea88a156d06373d2 (patch)
treee9c734bec0658c266670810bbfd243e80f03c9f4 /app/scripts
parentcf6817092b92930ab96e1c9e610669b485b384ff (diff)
downloadtangerine-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.js6
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