From 7a41c288e899aba0fe57b74ca520c295148f23c9 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Wed, 3 Dec 2014 03:13:41 -0300 Subject: [PATCH] fix digest error --- js/controllers/home.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/controllers/home.js b/js/controllers/home.js index 6a4d3a2f1..4b8993537 100644 --- a/js/controllers/home.js +++ b/js/controllers/home.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('copayApp.controllers').controller('HomeController', function($scope, $rootScope, $location, $timeout, notification, identityService, Compatibility, pinService) { +angular.module('copayApp.controllers').controller('HomeController', function($scope, $rootScope, $location, $timeout, notification, identityService, Compatibility, pinService, applicationService) { $scope.init = function() { // This is only for backwards compat, insight api should link to #!/confirmed directly @@ -145,7 +145,7 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc pinService.clear(function() { copay.logger.debug('PIN erased'); $scope.hasPin = null; - $scope.$digest(); + applicationService.reload(); }); };