diff --git a/js/greeter.js b/js/greeter.js index a529f70..eef6852 100644 --- a/js/greeter.js +++ b/js/greeter.js @@ -722,7 +722,7 @@ class AntergosTheme { _self.selected_user = null; _self.auth_pending = false; - if ( $(event.target).hasClass('alert') ) { + if ( !!event && $(event.target).hasClass('alert') ) { /* We were triggered by the authentication failed message being dismissed. * Keep the same account selected so user can retry without re-selecting an account. */