1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Combine two identical then blocks

This commit is contained in:
Dan Finlay 2017-01-05 11:03:30 -08:00
parent cf6817092b
commit 7659f5894a

View File

@ -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