diff --git a/src/js/controllers/amount.js b/src/js/controllers/amount.js index 51a42904d..7a60db095 100644 --- a/src/js/controllers/amount.js +++ b/src/js/controllers/amount.js @@ -36,12 +36,14 @@ angular.module('copayApp.controllers').controller('amountController', function($ throw ('bad params'); } - glideraService.getLimits($scope.glideraAccessToken, function(err, limits) { - $scope.limits = limits; - $timeout(function() { - $scope.$apply(); + if ($scope.isGlidera) { + glideraService.getLimits($scope.glideraAccessToken, function(err, limits) { + $scope.limits = limits; + $timeout(function() { + $scope.$apply(); + }); }); - }); + } var reNr = /^[1234567890\.]$/; var reOp = /^[\*\+\-\/]$/; diff --git a/src/js/controllers/confirm.js b/src/js/controllers/confirm.js index 9fe8355f9..91437f4fa 100644 --- a/src/js/controllers/confirm.js +++ b/src/js/controllers/confirm.js @@ -70,6 +70,11 @@ angular.module('copayApp.controllers').controller('confirmController', function( return; } + if ($scope.isGlidera == 'buy') { + initConfirm(); + return; + } + var filteredWallets = []; var index = 0; var enoughFunds = false;