1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

fix - getTxsByMetaData check if the key is in the object not if the value is truthy

This commit is contained in:
frankiebee 2018-05-01 13:57:14 -07:00
parent 84275456e4
commit 62bf76db53

View File

@ -262,7 +262,7 @@ class TransactionStateManager extends EventEmitter {
*/
getTxsByMetaData (key, value, txList = this.getTxList()) {
return txList.filter((txMeta) => {
if (txMeta.txParams[key]) {
if (key in txMeta.txParams) {
return txMeta.txParams[key] === value
} else {
return txMeta[key] === value