File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
Expand file tree Collapse file tree 1 file changed +1
-8
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" ;
@@ -42,13 +41,7 @@ const PeoplePage = () => {
4241
4342 const [ searchText , setSearchText ] = useState ( "" ) ;
4443
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-
44+ const normalizedMembers = selectNormalizedMembers ( state , searchText ) ;
5245
5346 const createMemberCards = normalizedMembers . map ( ( member , index ) => {
5447 return (
You can’t perform that action at this time.
0 commit comments