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:
parent
84275456e4
commit
62bf76db53
@ -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…
Reference in New Issue
Block a user