We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a2d0e8 + 3c1ee50 commit 6d2c60cCopy full SHA for 6d2c60c
src/contexts/messageInputContext/MessageInputContext.tsx
@@ -469,7 +469,7 @@ export const MessageInputProvider = <
469
470
/** Checks if the message is valid or not. Accordingly we can enable/disable send button */
471
const isValidMessage = () => {
472
- if (text) {
+ if (text && text.trim()) {
473
return true;
474
}
475
0 commit comments