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.')); }