Skip to content

Commit

Permalink
fix: make UserProfileImage to nullsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinho1011 committed Dec 25, 2023
1 parent 0da5675 commit 9179658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Home/CommentBox/CommentBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const CommentBox = ({
</CommentInfoContainer>
<Comment>
<Blur isVote={hasVoted}>
<UserProfileImage src={latestComment?.writer.profileImageUrl || ''} />
<UserProfileImage src={latestComment?.writer?.profileImageUrl || ''} />
<Text size={15} weight={'regular'} color={colors.white}>
{latestComment?.content || ''}
</Text>
Expand Down

0 comments on commit 9179658

Please sign in to comment.