]> Untitled Git - lemmy-ui.git/commitdiff
Set person_id to myId in handleLeaveModTeam (#1929)
authorLionir <git@thelion.website>
Thu, 13 Jul 2023 02:26:21 +0000 (22:26 -0400)
committerGitHub <noreply@github.com>
Thu, 13 Jul 2023 02:26:21 +0000 (22:26 -0400)
src/shared/components/community/sidebar.tsx

index 9f7eff2a87fff925bd8d7e422a8cd09a8a6a18fc..ec454de182a38def673dbad66e8c02ad087833d2 100644 (file)
@@ -573,7 +573,7 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
       i.setState({ leaveModTeamLoading: true });
       i.props.onLeaveModTeam({
         community_id: i.props.community_view.community.id,
-        person_id: 92,
+        person_id: myId,
         added: false,
         auth: myAuthRequired(),
       });