mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
remove unnecessary if statment for error message
This commit is contained in:
parent
fb9866b4e1
commit
a54c26382e
@ -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…
Reference in New Issue
Block a user