paypro: another tentative commit to avoid regression.
This commit is contained in:
parent
2b5102a493
commit
f31a59e0b3
1 changed files with 6 additions and 0 deletions
|
|
@ -17,6 +17,12 @@ angular.module('copayApp.directives')
|
|||
// Is this a payment protocol URI (BIP-72)?
|
||||
if (uri && uri.merchant) {
|
||||
scope.wallet.fetchPaymentTx(uri.merchant, function(err, merchantData) {
|
||||
if ((err && err.message === 'No unspent outputs.')) {
|
||||
//|| scope.availableBalance < +merchantData.total) {
|
||||
ctrl.$setValidity('validAddress', false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (err) {
|
||||
if (scope._resetPayPro) scope._resetPayPro();
|
||||
ctrl.$setValidity('validAddress', false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue