diff --git a/src/screens/UserPortal/People/People.tsx b/src/screens/UserPortal/People/People.tsx index 69afe130e4..a4b644dbb3 100644 --- a/src/screens/UserPortal/People/People.tsx +++ b/src/screens/UserPortal/People/People.tsx @@ -137,8 +137,11 @@ export default function people(): JSX.Element { useEffect(() => { if (data && data2) { + interface Admin { + _id: string; + } const adminIds = data2.organizations[0].admins.map( - (admin: any) => admin._id, + (admin: Admin) => admin._id, ); const updatedMembers = data.organizationsMemberConnection.edges.map( @@ -166,9 +169,12 @@ export default function people(): JSX.Element { } } else if (mode == 1) { if (data2) { - const admins = data2.organizations[0].admins.map((admin: any) => { - return { ...admin, userType: 'Admin' }; - }); + const admins = data2.organizations[0].admins.map( + (admin: InterfaceMember) => ({ + ...admin, + userType: 'Admin' as const, + }), + ); setMembers(admins); } }