Merge pull request #5122 from cmgustavo/bug/amazon-amount-01

Fix buying gift card when no wallet found
This commit is contained in:
Gabriel Edgardo Bazán 2016-12-01 12:27:59 -03:00 committed by GitHub
commit 3e80d90c62

View file

@ -252,6 +252,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
network: 'livenet',
})[0].id;
} catch(err) {
ongoingProcess.set('Preparing transaction...', false);
popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('No wallet found!'));
return;
};
@ -271,6 +272,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
amazonService.getBitPayInvoice(dataInvoice.invoiceId, function(err, invoice) {
if (err) {
ongoingProcess.set('Preparing transaction...', false);
popupService.showAlert(gettextCatalog.getString('Error'), bwcError.msg(err));
return;
}