Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added validation to prevent sending empty messages #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jumang4423
Copy link

Overview

This pull request introduces a crucial feature to the chat feature. The update ensures that the application does not send empty messages, enhancing the overall user experience and maintaining the quality of the conversation.

Key Changes

  • Validation Check: Implemented a validation check in the onSend function to prevent the sending of empty messages. This ensures that every message sent through the application has meaningful content.

Details

  • The validation check is a simple conditional statement that returns from the onSend function if the userInput is empty. This small but significant change improves the quality of the conversations by preventing unnecessary empty messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant