Skip to content

Commit

Permalink
remove unnecessary checks
Browse files Browse the repository at this point in the history
  • Loading branch information
AmarTrebinjac committed Jan 20, 2025
1 parent e2bd0e2 commit db27ad9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,12 @@ export default function CommentActionButtons({
if (user && user.id !== comment.author.id) {
commentOptions.push({
icon: <BlockIcon />,
label: `Block ${comment.author?.username}`,
label: `Block ${comment.author.username}`,
action: async () => {
const params = {
id: comment.author.id,
entity: ContentPreferenceType.User,
entityName: comment.author?.username,
entityName: comment.author.username,
feedId: user.id,
opts: {
hideToast: true,
Expand Down Expand Up @@ -218,7 +218,7 @@ export default function CommentActionButtons({
!isCompanion;

if (shouldShowFollow) {
const authorName = comment.author?.name || `@${comment.author?.username}`;
const authorName = comment.author.name || `@${comment.author.username}`;
const isFollowingUser = isFollowingContent(
comment.author?.contentPreference,
);
Expand Down

0 comments on commit db27ad9

Please sign in to comment.