export default {
  template: require('./layman-login.html'),
  bindings: {
    url: '=',
  },
  controller: function ($scope, HsCommonLaymanService) {
    'ngInject';
    this.modalVisible = true;
    HsCommonLaymanService.authenticated.subscribe((endpoint) => {
      this.modalVisible = false;
    });
  },
};

export default {
  template: require('./layman-login.html'),
  bindings: {
    url: '=',
  },
  controller: function ($scope, HsCommonLaymanService) {
    'ngInject';
    this.modalVisible = true;
    HsCommonLaymanService.authChange.subscribe((endpoint) => {
      this.modalVisible = false;
    });
  },
};

Fix misnamed variable for authChange observable
Fix misnamed variable for authChange observable
