Fixes typos
This commit is contained in:
parent
734e9e9472
commit
60abc1b73e
2 changed files with 5 additions and 5 deletions
|
|
@ -3,7 +3,7 @@
|
|||
angular.module('copayApp.services').factory('amazonService', function($http, $log, lodash, moment, storageService, configService, platformInfo) {
|
||||
var root = {};
|
||||
var credentials = {};
|
||||
var LIMIT = 500;
|
||||
var DAILYLIMIT = 500;
|
||||
|
||||
root.setCredentials = function(network) {
|
||||
credentials.AMAZON_SANDBOX = network == 'testnet' ? true : false;
|
||||
|
|
@ -57,8 +57,8 @@ angular.module('copayApp.services').factory('amazonService', function($http, $lo
|
|||
amazon = JSON.parse(amazon);
|
||||
}
|
||||
|
||||
if (amazon.date == dateStamp && (amazon.amount + amount) > LIMIT)
|
||||
return cb('EXCEEDED_DAYLY_LIMIT');
|
||||
if (amazon.date == dateStamp && (amazon.amount + amount) > DAILYLIMIT)
|
||||
return cb('EXCEEDED_DAILY_LIMIT');
|
||||
|
||||
return cb();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -139,8 +139,8 @@ angular.module('copayApp.services')
|
|||
case 'PASSWORD_INCORRECT':
|
||||
body = gettextCatalog.getString('Wrong spending password');
|
||||
break;
|
||||
case 'EXCEEDED_DAYLY_LIMIT':
|
||||
body = gettextCatalog.getString('Exceeded dayly limit of $500 per user');
|
||||
case 'EXCEEDED_DAILY_LIMIT':
|
||||
body = gettextCatalog.getString('Exceeded daily limit of $500 per user');
|
||||
break;
|
||||
case 'ERROR':
|
||||
body = (err.message || err.error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue