paypro: fix trusted check.

This commit is contained in:
Christopher Jeffrey 2014-07-27 21:39:13 -07:00 committed by Manuel Araoz
parent f49177f0b7
commit 6c098030c3
1 changed files with 1 additions and 1 deletions

View File

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