Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix bug where user could not block person from profile page #2151

Merged
merged 3 commits into from
Sep 27, 2023

Conversation

SleeplessOne1917
Copy link
Member

Resolves #2149

src/shared/components/person/profile.tsx Outdated Show resolved Hide resolved
@@ -826,6 +824,7 @@ export class Profile extends Component<
const blockPersonRes = await HttpService.client.blockPerson(form);
if (blockPersonRes.state === "success") {
updatePersonBlock(blockPersonRes.data);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having this in state is much cleaner, thx.

@dessalines dessalines merged commit 951c8af into main Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot unblock user from profile page
2 participants