diff --git a/themes/antergos/js/greeter.js b/themes/antergos/js/greeter.js index 9251cad..b0003dc 100644 --- a/themes/antergos/js/greeter.js +++ b/themes/antergos/js/greeter.js @@ -144,7 +144,7 @@ class AntergosThemeUtils { value = null; } - return value; + return ('undefined' !== typeof(value)) ? value : null; } @@ -666,7 +666,8 @@ class AntergosTheme { start_authentication( event ) { var user_id = $( this ).attr( 'id' ), selector = `.${user_id}`, - user_session = _util.cache_get( 'user', user_id, 'session' ); + user_session_cached = _util.cache_get( 'user', user_id, 'session' ), + user_session = (null !== user_session_cached) ? user_session_cached : lightdm.default_session; if ( _self.auth_pending || null !== _self.selected_user ) { lightdm.cancel_authentication();