diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index 2102ec2c..08f67bcd 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -19,8 +19,9 @@ export default function Conversation() { const endMessageRef = useRef(null); const inputRef = useRef(null); - useEffect(() => - endMessageRef?.current?.scrollIntoView({ behavior: 'smooth' }), + useEffect( + () => endMessageRef?.current?.scrollIntoView({ behavior: 'smooth' }), + [messages], ); const handleQuestion = (question: string) => {