diff --git a/packages/status-react/src/routes/chat/components/chat-input/index.tsx b/packages/status-react/src/routes/chat/components/chat-input/index.tsx index a2c788ff..92bcd7d7 100644 --- a/packages/status-react/src/routes/chat/components/chat-input/index.tsx +++ b/packages/status-react/src/routes/chat/components/chat-input/index.tsx @@ -34,6 +34,10 @@ export const ChatInput = (props: Props) => { } const handleKeyDown = (event: React.KeyboardEvent) => { + if (inputValue === '') { + return + } + if (event.key === 'Enter' && event.shiftKey === false) { onSubmit(inputValue) setInputValue('')