diff --git a/dev/App/User.js b/dev/App/User.js index 07c3290c7..a7f49e11e 100644 --- a/dev/App/User.js +++ b/dev/App/User.js @@ -868,7 +868,7 @@ class AppUser extends AbstractApp { } logout() { - Remote.logout(() => this.logoutReload(0 < (SettingsGet('ParentEmail')||{length:0}).length)); + Remote.logout(() => this.logoutReload((SettingsGet('ParentEmail')||{length:0}).length)); } bootend() { diff --git a/dev/bootstrap.js b/dev/bootstrap.js index f93cc88b2..7c56eb092 100644 --- a/dev/bootstrap.js +++ b/dev/bootstrap.js @@ -29,7 +29,7 @@ export default (App) => { addEventListener('click', ()=>rl.Dropdowns.detectVisibility()); rl.app = App; - rl.logoutReload = () => App && App.logoutReload && App.logoutReload(); + rl.logoutReload = App.logoutReload; rl.i18n = i18n;