diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index b110ec19..c7910818 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -61,6 +61,8 @@ export default function Conversation() { }; const handleQuestion = (question: string) => { + question = question.trim(); + if (question === '') return; dispatch(addQuery({ prompt: question })); dispatch(fetchAnswer({ question })); };