From f77d3bc3507b821f416ffb12d30238258aba0ed3 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 1 Aug 2014 14:39:24 -0700 Subject: [PATCH] paypro: fix trusted check. --- js/models/core/Wallet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index d7e99ff3f..0ad696e13 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -872,7 +872,7 @@ Wallet.prototype.receivePaymentRequest = function(options, pr, cb) { var der = cert.toString('hex'); var pem = PayPro.prototype._DERtoPEM(der, 'CERTIFICATE'); return PayPro.RootCerts.getTrusted(pem); - }); + }).filter(Boolean); if (!trusted.length) { if (typeof SSL_UNTRUSTED === 'undefined') {