1
0
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:
Dan Finlay 2016-04-19 17:33:37 -07:00
parent 901d23a029
commit f72887a0a2

View File

@ -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