Skip to content

Commit

Permalink
Merge pull request #1622 from pascaldevink/fix_feedback_on_ban_and_unban
Browse files Browse the repository at this point in the history
Fix feedback on banning an unbanning
  • Loading branch information
SleeplessOne1917 authored Jun 26, 2023
2 parents 16f2f0d + 70e8b05 commit 961345b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shared/components/person/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export class Profile extends Component<
this.handleSavePost = this.handleSavePost.bind(this);
this.handlePurgePost = this.handlePurgePost.bind(this);
this.handleFeaturePost = this.handleFeaturePost.bind(this);
this.handleModBanSubmit = this.handleModBanSubmit.bind(this);

// Only fetch the data if coming from another route
if (FirstLoadService.isFirstLoad) {
Expand Down Expand Up @@ -987,6 +988,7 @@ export class Profile extends Component<
s.personRes.data.comments
.filter(c => c.creator.id == banRes.data.person_view.person.id)
.forEach(c => (c.creator.banned = banRes.data.banned));
s.personRes.data.person_view.person.banned = banRes.data.banned;
}
return s;
});
Expand Down

0 comments on commit 961345b

Please sign in to comment.