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') {