Fix buying gift card when no wallet found
This commit is contained in:
parent
ee0bec9b06
commit
90230d6424
1 changed files with 2 additions and 0 deletions
|
|
@ -252,6 +252,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
network: 'livenet',
|
network: 'livenet',
|
||||||
})[0].id;
|
})[0].id;
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
|
ongoingProcess.set('Preparing transaction...', false);
|
||||||
popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('No wallet found!'));
|
popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('No wallet found!'));
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
@ -271,6 +272,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
||||||
|
|
||||||
amazonService.getBitPayInvoice(dataInvoice.invoiceId, function(err, invoice) {
|
amazonService.getBitPayInvoice(dataInvoice.invoiceId, function(err, invoice) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
ongoingProcess.set('Preparing transaction...', false);
|
||||||
popupService.showAlert(gettextCatalog.getString('Error'), bwcError.msg(err));
|
popupService.showAlert(gettextCatalog.getString('Error'), bwcError.msg(err));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue