mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 12:21:13 +00:00
chore: Replace arrow function with regular function
This commit is contained in:
parent
c044f06447
commit
20bf90a439
1 changed files with 9 additions and 6 deletions
|
@ -155,12 +155,15 @@ const Moderates = ({ moderates }: { moderates?: CommunityModeratorView[] }) =>
|
|||
const Follows = () =>
|
||||
getCommunitiesListing("subscribed", UserService.Instance.myUserInfo?.follows);
|
||||
|
||||
const isPersonBlocked = (personRes: RequestState<GetPersonDetailsResponse>) =>
|
||||
function isPersonBlocked(personRes: RequestState<GetPersonDetailsResponse>) {
|
||||
return (
|
||||
(personRes.state === "success" &&
|
||||
UserService.Instance.myUserInfo?.person_blocks.some(
|
||||
({ target: { id } }) => id === personRes.data.person_view.person.id,
|
||||
)) ??
|
||||
false;
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
export class Profile extends Component<
|
||||
RouteComponentProps<{ username: string }>,
|
||||
|
|
Loading…
Reference in a new issue