diff --git a/apps/portal/src/components/resumes/badges/ResumeUserBadges.tsx b/apps/portal/src/components/resumes/badges/ResumeUserBadges.tsx index 3e6325c7..1622dd9e 100644 --- a/apps/portal/src/components/resumes/badges/ResumeUserBadges.tsx +++ b/apps/portal/src/components/resumes/badges/ResumeUserBadges.tsx @@ -17,12 +17,15 @@ export default function ResumeUserBadges({ userId }: Props) { 'resumes.resume.findUserMaxResumeUpvoteCount', { userId }, ]); + const userTopUpvotedCommentCountQuery = trpc.useQuery([ + 'resumes.resume.findUserTopUpvotedCommentCount', + { userId }, + ]); - // TODO: Add other badges in const payload: BadgePayload = { maxResumeUpvoteCount: userMaxResumeUpvoteCountQuery.data ?? 0, reviewedResumesCount: userReviewedResumeCountQuery.data ?? 0, - topUpvotedCommentCount: 20, + topUpvotedCommentCount: userTopUpvotedCommentCountQuery.data ?? 0, }; return ( diff --git a/apps/portal/src/components/resumes/comments/ResumeCommentsList.tsx b/apps/portal/src/components/resumes/comments/ResumeCommentsList.tsx index 2fe23335..bb13da81 100644 --- a/apps/portal/src/components/resumes/comments/ResumeCommentsList.tsx +++ b/apps/portal/src/components/resumes/comments/ResumeCommentsList.tsx @@ -56,6 +56,7 @@ export default function ResumeCommentsList({ } return (