mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix config manager method
This commit is contained in:
parent
901d23a029
commit
f72887a0a2
@ -165,7 +165,7 @@ ConfigManager.prototype.getTxWithParams = function(params) {
|
||||
var transactions = this.getTxList()
|
||||
var matching = transactions.filter((tx) => {
|
||||
return Object.keys(tx.txParams).reduce((result, key) => {
|
||||
return tx.params[key] === params[key] && result
|
||||
return ('params' in tx) ? tx.params[key] === params[key] && result : result
|
||||
}, true)
|
||||
})
|
||||
return matching.length > 0 ? matching[0] : null
|
||||
|
Loading…
Reference in New Issue
Block a user