Skip to content

Commit f1fc397

Browse files
committed
Fix postcard crash on search
1 parent f326c48 commit f1fc397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/common/PostCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ const PostCard = ({ post, hideUser }: PostCardProps) => {
151151
<Link to={velogUrl}>
152152
<img
153153
src={optimizeImage(
154-
post.user.profile.thumbnail || userThumbnail,
154+
post.user.profile?.thumbnail || userThumbnail,
155155
120,
156156
)}
157157
alt="thumbnail"

0 commit comments

Comments
 (0)