paypro: fix verifyPaymentRequest. passing tests.

This commit is contained in:
Christopher Jeffrey 2014-08-05 12:46:57 -07:00 committed by Manuel Araoz
parent a0137b9e55
commit d0f0974567
1 changed files with 1 additions and 1 deletions

View File

@ -1213,7 +1213,7 @@ Wallet.prototype.createPaymentTxSync = function(options, merchantData, unspent)
// based on the cert, and checks to ensure the desired outputs are the same as
// the ones on the tx proposal.
Wallet.prototype.verifyPaymentRequest = function(ntxid) {
if (!txp) return false;
if (!ntxid) return false;
var txp = typeof ntxid !== 'object'
? this.txProposals.txps[ntxid]