Skip to content

Commit

Permalink
[ chore ] img 연산자 코드 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokyeom committed Jul 21, 2022
1 parent 9a3f668 commit f26c3ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/community/ContentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function ContentCard(props: ContentInfoProps) {
<span>{replyCount}</span>
</StReplyInfo>
</StContentInfo>
{img === undefined ? <></> : <StContentImg src={img} alt="리뷰 사진" />}
{img && <StContentImg src={img} alt="리뷰 사진" />}
</StContentsCardWrapper>
);
}
Expand Down

0 comments on commit f26c3ff

Please sign in to comment.