Rename variables

This commit is contained in:
Gustavo Maximiliano Cortez 2017-01-05 16:45:52 -03:00
commit cb1ff562bc
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
3 changed files with 2 additions and 3 deletions

View file

@ -17,7 +17,6 @@ angular.module('copayApp.controllers').controller('preferencesCoinbaseController
$scope.$on("$ionicView.enter", function(event, data){
coinbaseService.setCredentials();
$scope.network = coinbaseService.getEnvironment();
ongoingProcess.set('connectingCoinbase', true);
coinbaseService.init(function(err, data) {
if (err || lodash.isEmpty(data)) {

View file

@ -44,7 +44,7 @@ angular.module('copayApp.controllers').controller('tabSettingsController', funct
if ($scope.coinbaseEnabled) {
coinbaseService.setCredentials();
storageService.getCoinbaseToken(coinbaseService.getEnvironment(), function(err, token) {
storageService.getCoinbaseToken(coinbaseService.getNetwork(), function(err, token) {
if (err) $log.error(err);
$scope.coinbaseToken = token;
});

View file

@ -93,7 +93,7 @@ angular.module('copayApp.services').factory('coinbaseService', function($http, $
}
};
root.getEnvironment = function() {
root.getNetwork = function() {
return credentials.NETWORK;
};