fix digest error

This commit is contained in:
Gustavo Maximiliano Cortez 2014-12-03 03:13:41 -03:00
parent 51028178ed
commit 7a41c288e8
1 changed files with 2 additions and 2 deletions

View File

@ -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();
});
};