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.
1 parent 696cccb commit 3c1ee50Copy full SHA for 3c1ee50
src/contexts/messageInputContext/MessageInputContext.tsx
@@ -460,7 +460,7 @@ export const MessageInputProvider = <
460
461
/** Checks if the message is valid or not. Accordingly we can enable/disable send button */
462
const isValidMessage = () => {
463
- if (text) {
+ if (text && text.trim()) {
464
return true;
465
}
466
0 commit comments