fix paypro loading notification

This commit is contained in:
Matias Alejo Garcia 2014-12-10 20:59:05 -03:00
commit 4d31b39f94
3 changed files with 34 additions and 15 deletions

View file

@ -399,7 +399,11 @@ angular.module('copayApp.controllers').controller('SendController',
if (err) {
copay.logger.warn(err);
$scope.resetForm();
$scope.error = err.toString();
var msg = err.toString();
if (msg.match('HTTP')) {
msg = 'Could not fetch payment information';
}
$scope.error = msg;
} else {
$scope._merchantData = merchantData;
$scope._domain = merchantData.domain;