react warnings

fixed
This commit is contained in:
VividTruthKeeper 2022-08-16 14:22:33 +05:00
parent 15d71cb6ff
commit cd5d34bae3
1 changed files with 1 additions and 2 deletions

View File

@ -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">