Skip to content

Commit

Permalink
Fix: 채팅 입력 안했을 때 전송되지 않도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eunji-0623 committed Jul 31, 2024
1 parent b64246d commit e90b459
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/Popup/ChatPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function ChatPopup({

const sendMessage = (event: any) => {
event.preventDefault();
if (message === '') return;
if (isAdmin) {
socket.emit(
'sendMessageAdmin',
Expand Down

0 comments on commit e90b459

Please sign in to comment.