From d0f09745679c75f73ddaa4e4e29ae64ddb89f78e Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 5 Aug 2014 12:46:57 -0700 Subject: [PATCH] paypro: fix verifyPaymentRequest. passing tests. --- 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 bea1103b8..7835fc3ce 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -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]