mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 15:51:14 +00:00
change var name
This commit is contained in:
parent
f254433f87
commit
c5796bc7aa
1 changed files with 4 additions and 4 deletions
|
@ -59,7 +59,7 @@ interface ProfileState {
|
|||
sort: SortType;
|
||||
page: number;
|
||||
loading: boolean;
|
||||
personBlocks: boolean;
|
||||
personBlocked: boolean;
|
||||
siteRes: GetSiteResponse;
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,7 @@ export class Profile extends Component<any, ProfileState> {
|
|||
view: Profile.getViewFromProps(this.props.match.view),
|
||||
sort: Profile.getSortTypeFromProps(this.props.match.sort),
|
||||
page: Profile.getPageFromProps(this.props.match.page),
|
||||
personBlocks: false,
|
||||
personBlocked: false,
|
||||
siteRes: this.isoData.site_res,
|
||||
};
|
||||
|
||||
|
@ -131,9 +131,9 @@ export class Profile extends Component<any, ProfileState> {
|
|||
);
|
||||
}
|
||||
get isBlocked() {
|
||||
this.state.personBlocks = UserService.Instance.myUserInfo.person_blocks.
|
||||
this.state.personBlocked = UserService.Instance.myUserInfo.person_blocks.
|
||||
map(a => a.target.id).includes(this.state.personRes.person_view.person.id)
|
||||
return this.state.personBlocks
|
||||
return this.state.personBlocked
|
||||
}
|
||||
|
||||
static getViewFromProps(view: string): PersonDetailsView {
|
||||
|
|
Loading…
Reference in a new issue