From bb1574f858c21917ab481a5c5d59b7a42f6286ab Mon Sep 17 00:00:00 2001 From: Amar Trebinjac <36768584+AmarTrebinjac@users.noreply.github.com> Date: Mon, 20 Jan 2025 12:39:35 +0100 Subject: [PATCH] fix: Missing username (#4084) * fix: Missing username * add nullchecks on all username calls * remove unnecessary checks --- .../shared/src/components/comments/CommentActionButtons.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared/src/components/comments/CommentActionButtons.tsx b/packages/shared/src/components/comments/CommentActionButtons.tsx index b37a8bdc45..9b8ef8bb5e 100644 --- a/packages/shared/src/components/comments/CommentActionButtons.tsx +++ b/packages/shared/src/components/comments/CommentActionButtons.tsx @@ -180,7 +180,7 @@ export default function CommentActionButtons({ if (user && user.id !== comment.author.id) { commentOptions.push({ icon: , - label: `Block ${post.author.username}`, + label: `Block ${comment.author.username}`, action: async () => { const params = { id: comment.author.id,