Skip to content

Commit 3c1ee50

Browse files
authored
Fixed: restrict empty message
1 parent 696cccb commit 3c1ee50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/contexts/messageInputContext/MessageInputContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ export const MessageInputProvider = <
460460

461461
/** Checks if the message is valid or not. Accordingly we can enable/disable send button */
462462
const isValidMessage = () => {
463-
if (text) {
463+
if (text && text.trim()) {
464464
return true;
465465
}
466466

0 commit comments

Comments
 (0)