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

feature/default_network_editable
frankiebee 7 years ago
parent 84275456e4
commit 62bf76db53
  1. 2
      app/scripts/controllers/transactions/tx-state-manager.js

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

Loading…
Cancel
Save