From bef1113fc326dcc52a0394c4273bbd4342a68e6a Mon Sep 17 00:00:00 2001 From: Matias Pando Date: Thu, 6 Nov 2014 11:17:05 -0300 Subject: [PATCH] Go to the actual wallet --- js/controllers/paymentIntent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }; };