From 6c098030c3273ae8d2fb48610f055b5805cc85e4 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 27 Jul 2014 21:39:13 -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 0e14b3235..5e0cfb43a 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -832,7 +832,7 @@ Wallet.prototype._receivePaymentRequest = function(tx, options, pr, cb) { return RootCerts.getTrusted(pem); }); - if (!trusted.length) { + if (!trusted) { return cb(new Error('Not a trusted certificate.')); }