diff --git a/src/shared/components/person/profile.tsx b/src/shared/components/person/profile.tsx index 23382234..cfff6394 100644 --- a/src/shared/components/person/profile.tsx +++ b/src/shared/components/person/profile.tsx @@ -155,12 +155,15 @@ const Moderates = ({ moderates }: { moderates?: CommunityModeratorView[] }) => const Follows = () => getCommunitiesListing("subscribed", UserService.Instance.myUserInfo?.follows); -const isPersonBlocked = (personRes: RequestState) => - (personRes.state === "success" && - UserService.Instance.myUserInfo?.person_blocks.some( - ({ target: { id } }) => id === personRes.data.person_view.person.id, - )) ?? - false; +function isPersonBlocked(personRes: RequestState) { + return ( + (personRes.state === "success" && + UserService.Instance.myUserInfo?.person_blocks.some( + ({ target: { id } }) => id === personRes.data.person_view.person.id, + )) ?? + false + ); +} export class Profile extends Component< RouteComponentProps<{ username: string }>,