Merge pull request #384 from ArnabBCA/main

Fixed Empty Spaces Passed in the Input Field
pull/423/head
Alex 12 months ago committed by GitHub
commit ec2762c31a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 }));
};

Loading…
Cancel
Save