diff --git a/src/components/chat/ChattingRoom.tsx b/src/components/chat/ChattingRoom.tsx index f768841..70c983e 100644 --- a/src/components/chat/ChattingRoom.tsx +++ b/src/components/chat/ChattingRoom.tsx @@ -261,7 +261,11 @@ export function ChattingRoom({ }, [auth?.accessToken]); const sendMessage = () => { - if (stompClient !== null && stompClient.connected) { + if ( + stompClient !== null && + stompClient.connected && + inputMessage.length !== 0 + ) { const destination = `/send/${roomId}`; stompClient.publish({