Fix buying gift card when no wallet found

This commit is contained in:
Gustavo Maximiliano Cortez 2016-12-01 12:09:43 -03:00
commit 90230d6424
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

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;
}