Fixes typos

This commit is contained in:
Gustavo Maximiliano Cortez 2016-06-14 11:49:30 -03:00
commit 60abc1b73e
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
2 changed files with 5 additions and 5 deletions

View file

@ -3,7 +3,7 @@
angular.module('copayApp.services').factory('amazonService', function($http, $log, lodash, moment, storageService, configService, platformInfo) { angular.module('copayApp.services').factory('amazonService', function($http, $log, lodash, moment, storageService, configService, platformInfo) {
var root = {}; var root = {};
var credentials = {}; var credentials = {};
var LIMIT = 500; var DAILYLIMIT = 500;
root.setCredentials = function(network) { root.setCredentials = function(network) {
credentials.AMAZON_SANDBOX = network == 'testnet' ? true : false; credentials.AMAZON_SANDBOX = network == 'testnet' ? true : false;
@ -57,8 +57,8 @@ angular.module('copayApp.services').factory('amazonService', function($http, $lo
amazon = JSON.parse(amazon); amazon = JSON.parse(amazon);
} }
if (amazon.date == dateStamp && (amazon.amount + amount) > LIMIT) if (amazon.date == dateStamp && (amazon.amount + amount) > DAILYLIMIT)
return cb('EXCEEDED_DAYLY_LIMIT'); return cb('EXCEEDED_DAILY_LIMIT');
return cb(); return cb();
}); });

View file

@ -139,8 +139,8 @@ angular.module('copayApp.services')
case 'PASSWORD_INCORRECT': case 'PASSWORD_INCORRECT':
body = gettextCatalog.getString('Wrong spending password'); body = gettextCatalog.getString('Wrong spending password');
break; break;
case 'EXCEEDED_DAYLY_LIMIT': case 'EXCEEDED_DAILY_LIMIT':
body = gettextCatalog.getString('Exceeded dayly limit of $500 per user'); body = gettextCatalog.getString('Exceeded daily limit of $500 per user');
break; break;
case 'ERROR': case 'ERROR':
body = (err.message || err.error); body = (err.message || err.error);