parent
15d71cb6ff
commit
cd5d34bae3
|
|
@ -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<any>] = useState();
|
||||
|
|
@ -16,7 +15,7 @@ const PlayerProfile = () => {
|
|||
|
||||
useEffect(() => {
|
||||
getPlayerInfo(setPlayerInfo, `${players}/${playerId}`);
|
||||
}, []);
|
||||
}, [playerId]);
|
||||
|
||||
return (
|
||||
<main className="pp">
|
||||
|
|
|
|||
Loading…
Reference in New Issue