From a287c3736da91c0d3f0421a4f2d29ae54a16c188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Mon, 5 Dec 2016 15:40:04 -0300 Subject: [PATCH] fix variables --- src/js/controllers/confirm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/controllers/confirm.js b/src/js/controllers/confirm.js index 5e4ae0e3d..7b4e68663 100644 --- a/src/js/controllers/confirm.js +++ b/src/js/controllers/confirm.js @@ -450,7 +450,7 @@ angular.module('copayApp.controllers').controller('confirmController', function( var message = gettextCatalog.getString("A SMS containing a confirmation code was sent to your phone."); popupService.showPrompt(title, message, null, function(twoFaCode) { if (typeof twoFaCode == 'undefined') return; - if ($scope.glideraBuy) { + if ($scope.isGlidera == 'buy') { $scope.buyRequest(wallet, twoFaCode, function(err, data) { if (err) { popupService.showAlert(gettextCatalog.getString('Error'), err); @@ -462,7 +462,7 @@ angular.module('copayApp.controllers').controller('confirmController', function( }); }) } - if ($scope.glideraSell) { + if ($scope.isGlidera == 'sell') { $scope.sellRequest(wallet, twoFaCode, function(err, data) { if (err) { popupService.showAlert(gettextCatalog.getString('Error'), err);