Skip to content

Commit

Permalink
Temporary fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tanish35 committed Oct 13, 2024
1 parent 0d20912 commit b714df4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Posts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ const Posts = () => {
</Flex>
<Flex align="center">
<Text className="text-sm text-white bg-green-500 rounded-md px-2 py-1 shadow-md">
{post._count.Comments}{" "}
{post._count.Comments === 1 ? "comment" : "comments"}
{post._count?.Comments}{" "}
{post._count?.Comments === 1 ? "comment" : "comments"}
</Text>
</Flex>
</Flex>
Expand Down

0 comments on commit b714df4

Please sign in to comment.