Skip to content

Commit 00b5544

Browse files
committed
Fix: 채팅방 나가기 경고문구 추가
1 parent a08f6af commit 00b5544

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/ChatRoom.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ const ChatRoom = ({ roomId: propRoomId, onLeaveRoom, refreshRooms }) => {
234234
// 이미 액션이 진행 중이면 중복 실행 방지
235235
if (actionInProgress) return;
236236

237+
// Confirm before deleting
238+
if (!window.confirm('채팅방을 정말 나가시겠습니까?')) {
239+
return;
240+
}
241+
237242
setActionInProgress(true); // 액션 시작
238243

239244
// 먼저 UI 업데이트

0 commit comments

Comments
 (0)