mirror of https://github.com/BTCPrivate/copay.git
paypro: fix trusted check.
This commit is contained in:
parent
f49177f0b7
commit
6c098030c3
|
@ -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.'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue