Skip to content

Commit

Permalink
ChatPageGroup.jsx message 널처리 코드 제거 (에러 발생)
Browse files Browse the repository at this point in the history
  • Loading branch information
minjikimkim2222 committed Feb 6, 2025
1 parent faa3c77 commit c6942d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fe/src/pages/ChatPageGroup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function ChatPageGroup({roomId, roomInfo, refreshChatList, refreshChatComponent}
isJoinMessage ? 'join-message-group' : '' // join 메시지에 대한 CSS 클래스 추가
}`}
>
{!isCurrentUser && sender && !isJoinMessage && message ( // message null 체크 추가
{!isCurrentUser && sender && !isJoinMessage && ( // message null 체크 추가
<div className="message-profile-group">
{/* profileImgUrl이 있으면 이미지를 표시하고, 없으면 FaUserCircle 아이콘을 표시합니다. */}
{sender && sender.profileImgUrl ? (
Expand Down

0 comments on commit c6942d4

Please sign in to comment.