Skip to content

Commit

Permalink
Merge pull request #384 from ArnabBCA/main
Browse files Browse the repository at this point in the history
Fixed Empty Spaces Passed in the Input Field
  • Loading branch information
dartpain authored Oct 4, 2023
2 parents 29f3158 + e95e084 commit ec2762c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/conversation/Conversation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }));
};
Expand Down

2 comments on commit ec2762c

@vercel
Copy link

@vercel vercel bot commented on ec2762c Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nextra-docsgpt – ./docs

docs.docsgpt.co.uk
nextra-docsgpt-arc53.vercel.app
nextra-docsgpt-git-main-arc53.vercel.app
nextra-docsgpt.vercel.app

@vercel
Copy link

@vercel vercel bot commented on ec2762c Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs-gpt – ./frontend

docs-gpt-git-main-arc53.vercel.app
docs-gpt-arc53.vercel.app
docs-gpt-brown.vercel.app

Please sign in to comment.