Combine two identical then blocks
This commit is contained in:
parent
cf6817092b
commit
7659f5894a
|
@ -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…
Reference in New Issue