) => {
const { isUserLoading, isUserBillingDataLoading, isPlatformUser, isPaidUser, userBillingData, userOrgId } =
useGetUserAttributes();
const currentOrg = props.org;
@@ -33,7 +33,7 @@ const PlatformMembersView = (props: UserListTableProps) => {
/>
);
- return !isPlatformUser ? (
+ return isPlatformUser ? (
{canLoggedInUserSeeMembers && }
) : (
diff --git a/packages/features/users/components/UserTable/UserListTable.tsx b/packages/features/users/components/UserTable/UserListTable.tsx
index a56185541f..ebd692ea5c 100644
--- a/packages/features/users/components/UserTable/UserListTable.tsx
+++ b/packages/features/users/components/UserTable/UserListTable.tsx
@@ -109,8 +109,8 @@ function reducer(state: UserTableState, action: UserTableAction): UserTableState
export type UserListTableProps = {
org: RouterOutputs["viewer"]["organizations"]["listCurrent"];
teams: RouterOutputs["viewer"]["organizations"]["getTeams"];
- facetedTeamValues: RouterOutputs["viewer"]["organizations"]["getFacetedValues"];
- attributes: RouterOutputs["viewer"]["attributes"]["list"];
+ facetedTeamValues?: RouterOutputs["viewer"]["organizations"]["getFacetedValues"];
+ attributes?: RouterOutputs["viewer"]["attributes"]["list"];
};
export function UserListTable(props: UserListTableProps) {