diff --git a/js/controllers/paymentIntent.js b/js/controllers/paymentIntent.js index 42f1f30fe..9aa47f15e 100644 --- a/js/controllers/paymentIntent.js +++ b/js/controllers/paymentIntent.js @@ -2,7 +2,7 @@ var bitcore = require('bitcore'); -angular.module('copayApp.controllers').controller('PaymentIntentController', function($rootScope, $scope, $modal, controllerUtils) { +angular.module('copayApp.controllers').controller('PaymentIntentController', function($rootScope, $scope, $modal, $location, controllerUtils) { $scope.wallets = []; @@ -44,7 +44,7 @@ angular.module('copayApp.controllers').controller('PaymentIntentController', fun $scope.cancel = function() { $rootScope.pendingPayment = null; - controllerUtils.setFocusedWallet($scope.wallets[0]); + $location.path('/'); $modalInstance.close(); }; };