We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2280fb commit e6bbea1Copy full SHA for e6bbea1
src/operator/account/AssociatedUsersTable.tsx
@@ -21,6 +21,7 @@ import {OperatorContext} from 'src/operator/context/operator'
21
22
const AssociatedTableUsers: FC = () => {
23
const {account, handleRemoveUserFromAccount} = useContext(AccountContext)
24
+ const hasMultipleUsers = account?.users?.length > 1
25
const {hasWritePermissions} = useContext(OperatorContext)
26
27
return (
@@ -41,7 +42,7 @@ const AssociatedTableUsers: FC = () => {
41
42
resource={resource}
43
infos={acctUserColumnInfo}
44
>
- {hasWritePermissions && (
45
+ {hasWritePermissions && hasMultipleUsers && (
46
<RemoveFromAccount
47
removeUser={async () => {
48
await handleRemoveUserFromAccount(resource.id)
0 commit comments