diff --git a/src/components/MessageForm/MessageForm.tsx b/src/components/MessageForm/MessageForm.tsx index 26b605f..506d8b4 100644 --- a/src/components/MessageForm/MessageForm.tsx +++ b/src/components/MessageForm/MessageForm.tsx @@ -31,7 +31,7 @@ export const MessageForm = ({ }, [textFieldRef]) const canMessageBeSent = () => { - return textMessage.trim().length > 0 && !isMessageSending + return textMessage.trim().length > 0 && textMessage.trim().length < 1000 && !isMessageSending } const handleMessageChange = (event: React.ChangeEvent) => {