better paypro diplay

This commit is contained in:
Matias Alejo Garcia 2015-09-18 12:07:51 -03:00
commit 7bda16494e
3 changed files with 30 additions and 6 deletions

View file

@ -982,6 +982,19 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
msg = gettext('Could not fetch payment information');
}
self.error = msg;
$timeout(function() {
$rootScope.$digest();
}, 1);
return cb(true);
}
if (!paypro.verified) {
self.resetForm();
$log.warn('Failed to verified payment protocol signatured');
self.error = gettext('Payment Protocol Invalid');
$timeout(function() {
$rootScope.$digest();
}, 1);
return cb(true);
}