diff --git a/src/js/controllers/sellGlidera.js b/src/js/controllers/sellGlidera.js index a789274c8..a3bc09b62 100644 --- a/src/js/controllers/sellGlidera.js +++ b/src/js/controllers/sellGlidera.js @@ -112,7 +112,7 @@ angular.module('copayApp.controllers').controller('sellGlideraController', this.get2faCode = function(token) { var self = this; - this.loading = 'Sending 2FA code...'; + self.loading = 'Sending 2FA code...'; $timeout(function() { glideraService.get2faCode(token, function(err, sent) { self.loading = null; @@ -135,7 +135,7 @@ angular.module('copayApp.controllers').controller('sellGlideraController', self.error = err; return; } - this.loading = 'Selling Bitcoin...'; + self.loading = 'Selling Bitcoin...'; $timeout(function() { addressService.getAddress(fc.credentials.walletId, null, function(err, refundAddress) { if (!refundAddress) { @@ -174,7 +174,7 @@ angular.module('copayApp.controllers').controller('sellGlideraController', return; } - txSignService.sign(tx, function(err, txp) { + txSignService.sign(txp, function(err, txp) { if (err) { self.loading = null; self.error = err; @@ -192,7 +192,7 @@ angular.module('copayApp.controllers').controller('sellGlideraController', self.loading = null; if (err) { self.error = err; - fc.removeTxProposal(txp, function(err, txpb) { + fc.removeTxProposal(txp, function(err, txp) { $timeout(function() { $scope.$emit('Local/GlideraError'); }, 100); diff --git a/src/js/services/configService.js b/src/js/services/configService.js index 0d8484ac9..6711ea2a4 100644 --- a/src/js/services/configService.js +++ b/src/js/services/configService.js @@ -94,7 +94,7 @@ angular.module('copayApp.services').factory('configService', function(storageSer // Glidera // Disabled for testnet - configCache.glidera.testnet = false; + configCache.glidera.testnet = true; $log.debug('Preferences read:', configCache) return cb(err, configCache);