Fix currency

This commit is contained in:
Gustavo Maximiliano Cortez 2017-06-05 12:09:48 -03:00
commit f6d7a50b00
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
5 changed files with 9 additions and 30 deletions

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.services').factory('bitpayCardService', function($log, $rootScope, $filter, lodash, storageService, bitauthService, platformInfo, moment, appIdentityService, bitpayService, nextStepsService, configService, txFormatService, appConfigService) {
angular.module('copayApp.services').factory('bitpayCardService', function($log, $rootScope, $filter, lodash, storageService, bitauthService, platformInfo, moment, appIdentityService, bitpayService, nextStepsService, txFormatService, appConfigService) {
var root = {};
var _setError = function(msg, e) {
@ -41,16 +41,6 @@ angular.module('copayApp.services').factory('bitpayCardService', function($log,
return history;
};
root.getAvailableCurrency = function() {
var config = configService.getSync().wallet.settings;
// ONLY "USD", "EUR" and "GBP"
switch (config.alternativeIsoCode) {
case 'EUR': return 'EUR';
case 'GBP': return 'GBP';
default: return 'USD'
};
};
root.sync = function(apiContext, cb) {
var json = {
method: 'getDebitCards'