Combine two identical then blocks

feature/default_network_editable
Dan Finlay 8 years ago
parent cf6817092b
commit 7659f5894a
  1. 6
      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

Loading…
Cancel
Save