diff --git a/assets/chat/js/chat.js b/assets/chat/js/chat.js index a5bc4dad..92609a2c 100644 --- a/assets/chat/js/chat.js +++ b/assets/chat/js/chat.js @@ -636,10 +636,12 @@ class Chat { } setPreLoginText() { - const chatText = ChatStore.read('chat.preLoginText') || ''; + const chatText = ChatStore.read('chat.preLoginText'); + if (chatText === null) { + return; + } this.input.val(chatText); ChatStore.remove('chat.preLoginText'); - this.input.focus(); } setEmotes(emotes) {