Skip to content

Commit

Permalink
fixed PostInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
szymanski-marcin committed Dec 4, 2023
1 parent b4a751c commit 29b8801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PostInfo/PostInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const PostInfo: React.FC<Props> = ({ post }) => (
<div className="PostInfo__header">
<h3 className="PostInfo__title">{post.title}</h3>

{post.user && <UserInfo key={post.id} user={post.user} />}
{post.user && <UserInfo user={post.user} />}
</div>

<p className="PostInfo__body">{post.body}</p>
Expand Down

0 comments on commit 29b8801

Please sign in to comment.