From dac178e712d91f243ae70a2b268e5bf07d384a09 Mon Sep 17 00:00:00 2001 From: Terence <45381509+Vielheim@users.noreply.github.com> Date: Fri, 21 Oct 2022 23:14:57 +0800 Subject: [PATCH] [resumes][fix] fix reply comments (#407) Co-authored-by: Terence Ho <> --- .../resumes/comments/ResumeCommentListItem.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx b/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx index 5561a49e..07d951bb 100644 --- a/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx +++ b/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx @@ -96,15 +96,17 @@ export default function ResumeCommentListItem({
- {/* Action buttons; only present when not editing/replying */} - {isCommentOwner && !isEditingComment && !isReplyingComment && ( + {/* Action buttons; only present for authenticated user when not editing/replying */} + {userId && !isEditingComment && !isReplyingComment && ( <> - + {isCommentOwner && ( + + )} {!comment.parentId && (