Skip to content

Commit

Permalink
leave group ready
Browse files Browse the repository at this point in the history
  • Loading branch information
zwphyro committed Dec 22, 2024
1 parent 86ef84f commit d81a36f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions frontend/src/pages/groupprofile/GroupProfilePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ export default function GroupProfile(props) {
});
}
const handleLeaveClick = (event) => {
toast("Вы не можете покинуть группу!");
// joinGroup(groupId, authentifiedUserId).then((response) => {
// setUserInGroup(false);
// });
joinGroup(groupId, authentifiedUserId).then((response) => {
setUserInGroup(false);
});
}

useEffect(() => {
Expand Down

0 comments on commit d81a36f

Please sign in to comment.