File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { AppContext } from "../context/AppContext";
55import {
66 selectMemberProfilesLoading ,
77 selectNormalizedMembers ,
8- selectNormalizedMembersAdmin ,
98} from "../context/selectors" ;
109import { TextField , Grid } from "@mui/material" ;
1110import "./PeoplePage.css" ;
@@ -37,18 +36,11 @@ const Root = styled('div')({
3736
3837const PeoplePage = ( ) => {
3938 const { state } = useContext ( AppContext ) ;
40- const loading = selectMemberProfilesLoading ( state )
41- const { userProfile } = state ;
39+ const loading = selectMemberProfilesLoading ( state )
4240
4341 const [ searchText , setSearchText ] = useState ( "" ) ;
4442
45- const isAdmin =
46- userProfile && userProfile . role && userProfile . role . includes ( "ADMIN" ) ;
47-
48- const normalizedMembers = isAdmin
49- ? selectNormalizedMembersAdmin ( state , searchText )
50- : selectNormalizedMembers ( state , searchText ) ;
51-
43+ const normalizedMembers = selectNormalizedMembers ( state , searchText ) ;
5244
5345 const createMemberCards = normalizedMembers . map ( ( member , index ) => {
5446 return (
You can’t perform that action at this time.
0 commit comments