Skip to content

Commit 94c4da6

Browse files
authored
fix: removes the ability to remove user from account when running in multi-org mode (#6428)
There is no remove from account endpoint for this logic yet and want to remove the ability from accidentally removing a user from a single org in an account.
1 parent ae30eab commit 94c4da6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/accounts/AccountPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ const AccountAboutPage: FC = () => {
103103
}
104104

105105
const showDeactivateAccountSection = isFlagEnabled('freeAccountCancellation')
106+
const showLeaveAcctBtn = !isFlagEnabled('createDeleteOrgs')
106107

107108
return (
108109
<AccountTabContainer activeTab="settings">
@@ -130,7 +131,7 @@ const AccountAboutPage: FC = () => {
130131
text="Save"
131132
/>
132133
</FlexBox>
133-
{allowSelfRemoval && leaveAcctBtn}
134+
{allowSelfRemoval && showLeaveAcctBtn && leaveAcctBtn}
134135
{showDeactivateAccountSection && (
135136
<>
136137
<hr style={dividerStyle} />

0 commit comments

Comments
 (0)