Skip to content

Commit

Permalink
fix(org admin): marking user org admin with correct ID (#1756)
Browse files Browse the repository at this point in the history
  • Loading branch information
karelhala authored Feb 11, 2025
1 parent 323a538 commit 31606bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smart-components/user/OrgAdminDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const OrgAdminDropdown: React.FC<{
setLoading(true);

try {
await dispatch(updateUserIsOrgAdminStatus({ userId, is_org_admin: newStatus }, { isProd: isProd(), token, accountId }));
await dispatch(updateUserIsOrgAdminStatus({ id: userId, is_org_admin: newStatus }, { isProd: isProd(), token, accountId }));
await dispatch(fetchUsers());
} catch (error) {
console.error('Failed to update org admin status:', error);
Expand Down

0 comments on commit 31606bb

Please sign in to comment.