diff --git a/src/react/Chat.tsx b/src/react/Chat.tsx index 8b470910..41a6cb6f 100644 --- a/src/react/Chat.tsx +++ b/src/react/Chat.tsx @@ -101,7 +101,7 @@ export default ({ if (!/^[\w\d_]+$/i.test(currentPlayerName ?? '')) return '' return currentPlayerName }, [currentPlayerName]) - + const sendHistoryRef = useRef(JSON.parse(window.sessionStorage.chatHistory || '[]')) const [isInputFocused, setIsInputFocused] = useState(false) const spellCheckEnabled = false