diff --git a/src/app/components/typing-indicator/TypingIndicator.tsx b/src/app/components/typing-indicator/TypingIndicator.tsx index 0469a70fd..2c98faae7 100644 --- a/src/app/components/typing-indicator/TypingIndicator.tsx +++ b/src/app/components/typing-indicator/TypingIndicator.tsx @@ -10,7 +10,7 @@ export type TypingIndicatorProps = { }; export const TypingIndicator = as<'div', TypingIndicatorProps>( - function TypingIndicatorInner({ size, disableAnimation, style, ...props }, ref) { + ({ size, disableAnimation, style, ...props }, ref) => { const [lotusTerminal] = useSetting(settingsAtom, 'lotusTerminal'); return ( ( const creators = useRoomCreators(room); const [charCount, setCharCount] = useState(0); - useEffect(() => { setCharCount(0); }, [roomId]); + useEffect(() => { + setCharCount(0); + }, [roomId]); const alive = useAlive(); const [msgDraft, setMsgDraft] = useAtom(roomIdToMsgDraftAtomFamily(roomId));