diff --git a/src/Pages/MemberPages.js b/src/Pages/MemberPages.js index 1728e046..777ad793 100644 --- a/src/Pages/MemberPages.js +++ b/src/Pages/MemberPages.js @@ -1,4 +1,4 @@ -import React, { useEffect } from 'react'; +import React from 'react'; import * as BS from 'react-bootstrap'; import { useParams } from "react-router-dom"; import MemberPage from '../Components/Private/MemberPage.js' @@ -11,11 +11,6 @@ export default function MemberPages(props) { const memberpage = memberpages.map((member) => ) const noMatch = memberpages.length === 0; - useEffect (() => { - if (memberpages.length === 0) { - } - }, [memberpages]) - if (noMatch) return ( You do not have a member with the ID '{memberID}' in your system. Please check the ID again. ) diff --git a/src/Pages/ProfilePages.js b/src/Pages/ProfilePages.js index d589b962..d2633dd7 100644 --- a/src/Pages/ProfilePages.js +++ b/src/Pages/ProfilePages.js @@ -1,4 +1,4 @@ -import React, { useEffect } from 'react'; +import React from 'react'; import * as BS from 'react-bootstrap'; import { useParams } from "react-router-dom"; import ProfilePage from '../Components/Public/ProfilePage.js' @@ -7,14 +7,9 @@ export default function MemberPages(props) { const { memberID } = useParams(); const memberpages = props.members.filter((member) => member.id === memberID) - const memberpage = memberpages.map((member) => ) + const memberpage = memberpages.map((member) => ) const noMatch = memberpages.length === 0; - useEffect (() => { - if (memberpages.length === 0) { - } - }, [memberpages]) - if (noMatch) return ( This system does not have a member with the ID '{memberID}', or the member's visibility is set to private. )