diff --git a/src/pages/PlayerProfile.tsx b/src/pages/PlayerProfile.tsx index a2dd8e9..36bdfb4 100644 --- a/src/pages/PlayerProfile.tsx +++ b/src/pages/PlayerProfile.tsx @@ -8,7 +8,6 @@ import { getPlayerInfo } from "../helpers/apiRequests"; // Links import { hosting } from "../links"; import { players } from "../links"; -import Rating from "./Rating"; const PlayerProfile = () => { const [playerInfo, setPlayerInfo]: [any, React.Dispatch] = useState(); @@ -16,7 +15,7 @@ const PlayerProfile = () => { useEffect(() => { getPlayerInfo(setPlayerInfo, `${players}/${playerId}`); - }, []); + }, [playerId]); return (