remove unnecessary if statment for error message

feature/default_network_editable
frankiebee 7 years ago
parent fb9866b4e1
commit a54c26382e
  1. 1
      app/scripts/controllers/transactions.js

@ -246,7 +246,6 @@ module.exports = class TransactionController extends EventEmitter {
// must set transaction to submitted/failed before releasing lock
nonceLock.releaseLock()
} catch (err) {
if (!err.message) err.message = 'Transaction failed during approval'
this.setTxStatusFailed(txId, err)
// must set transaction to submitted/failed before releasing lock
if (nonceLock) nonceLock.releaseLock()

Loading…
Cancel
Save