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 && (
-
+
diff --git a/apps/portal/src/pages/resumes/submit.tsx b/apps/portal/src/pages/resumes/submit.tsx
index 92a1c392..28b7a3b6 100644
--- a/apps/portal/src/pages/resumes/submit.tsx
+++ b/apps/portal/src/pages/resumes/submit.tsx
@@ -80,6 +80,7 @@ export default function SubmitResumeForm({
const { data: session, status } = useSession();
const router = useRouter();
+ const trpcContext = trpc.useContext();
const resumeUpsertMutation = trpc.useMutation('resumes.resume.user.upsert');
const isNewForm = initFormDetails == null;
@@ -170,6 +171,7 @@ export default function SubmitResumeForm({
},
onSuccess() {
if (isNewForm) {
+ trpcContext.invalidateQueries('resumes.resume.findAll');
router.push('/resumes/browse');
} else {
onClose();
@@ -228,7 +230,7 @@ export default function SubmitResumeForm({
Upload a Resume
-
+