Fix limit per day message
This commit is contained in:
parent
59d668f292
commit
549d395ec1
3 changed files with 11 additions and 4 deletions
|
|
@ -278,8 +278,13 @@ angular.module('copayApp.controllers').controller('buyAmazonController', functio
|
|||
amount = data.stateParams.amount;
|
||||
currency = data.stateParams.currency;
|
||||
|
||||
if (amount > 1000) {
|
||||
showErrorAndBack(null, gettextCatalog.getString('Purchase Amount is limited to USD 1000 per day'));
|
||||
$scope.limitPerDayMessage = gettextCatalog.getString('Purchase Amount is limited to {{limitPerDay}} {{currency}} per day', {
|
||||
limitPerDay: amazonService.limitPerDay,
|
||||
currency: currency
|
||||
});
|
||||
|
||||
if (amount > amazonService.limitPerDay) {
|
||||
showErrorAndBack(null, $scope.limitPerDayMessage);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ angular.module('copayApp.services').factory('amazonService', function($http, $lo
|
|||
var root = {};
|
||||
var credentials = {};
|
||||
|
||||
root.limitPerDay = 1000;
|
||||
|
||||
/*
|
||||
* Development: 'testnet'
|
||||
* Production: 'livenet'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue