From b714df4c7e183a006ea3f5d96e078af178ae21fc Mon Sep 17 00:00:00 2001 From: tanish35 Date: Sun, 13 Oct 2024 19:01:23 +0530 Subject: [PATCH] Temporary fix --- frontend/src/components/Posts.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/Posts.jsx b/frontend/src/components/Posts.jsx index 3102861..51953c4 100644 --- a/frontend/src/components/Posts.jsx +++ b/frontend/src/components/Posts.jsx @@ -215,8 +215,8 @@ const Posts = () => { - {post._count.Comments}{" "} - {post._count.Comments === 1 ? "comment" : "comments"} + {post._count?.Comments}{" "} + {post._count?.Comments === 1 ? "comment" : "comments"}