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) {
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();
});

View file

@ -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);