diff --git a/frontend/src/api/queries/projectQueries.ts b/frontend/src/api/queries/projectQueries.ts index 99c6ef6b3..5f0228339 100644 --- a/frontend/src/api/queries/projectQueries.ts +++ b/frontend/src/api/queries/projectQueries.ts @@ -16,10 +16,12 @@ export const GET_PROJECT_DATA = gql` title commentsCount createdAt + url author { avatarUrl login name + url } } recentReleases { diff --git a/frontend/src/components/CardDetailsPage.tsx b/frontend/src/components/CardDetailsPage.tsx index bb40436d0..44faba246 100644 --- a/frontend/src/components/CardDetailsPage.tsx +++ b/frontend/src/components/CardDetailsPage.tsx @@ -100,8 +100,13 @@ const DetailsCard = ({
{formatDate(item.createdAt)} - - {item.commentsCount} comments + {item.commentsCount && ( + <> + + {item.commentsCount} comments + + )} +
)} /> diff --git a/frontend/src/components/ItemCardList.tsx b/frontend/src/components/ItemCardList.tsx index 4c0dee610..7b623ef2c 100644 --- a/frontend/src/components/ItemCardList.tsx +++ b/frontend/src/components/ItemCardList.tsx @@ -35,7 +35,7 @@ const ItemCardList = ({ className="mr-2 h-6 w-6 rounded-full" /> {item?.author?.name || item?.author?.login}