aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2018-05-02 04:57:14 +0800
committerfrankiebee <frankie.diamond@gmail.com>2018-05-02 04:57:14 +0800
commit62bf76db53cf0702739d2735edfe8ffcb142b7c2 (patch)
treeb0b6f25f3a0c85d401aefb31245512433db82554
parent84275456e40d2373abe55bc756f09096a80e5fd6 (diff)
downloadtangerine-wallet-browser-62bf76db53cf0702739d2735edfe8ffcb142b7c2.tar
tangerine-wallet-browser-62bf76db53cf0702739d2735edfe8ffcb142b7c2.tar.gz
tangerine-wallet-browser-62bf76db53cf0702739d2735edfe8ffcb142b7c2.tar.bz2
tangerine-wallet-browser-62bf76db53cf0702739d2735edfe8ffcb142b7c2.tar.lz
tangerine-wallet-browser-62bf76db53cf0702739d2735edfe8ffcb142b7c2.tar.xz
tangerine-wallet-browser-62bf76db53cf0702739d2735edfe8ffcb142b7c2.tar.zst
tangerine-wallet-browser-62bf76db53cf0702739d2735edfe8ffcb142b7c2.zip
fix - getTxsByMetaData check if the key is in the object not if the value is truthy
-rw-r--r--app/scripts/controllers/transactions/tx-state-manager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/controllers/transactions/tx-state-manager.js b/app/scripts/controllers/transactions/tx-state-manager.js
index 53428c333..380214c1d 100644
--- a/app/scripts/controllers/transactions/tx-state-manager.js
+++ b/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