From 8817a64cd75d91828c6e487c70ff1b9acead575f Mon Sep 17 00:00:00 2001 From: FifthWit Date: Thu, 30 Jan 2025 11:15:49 -0600 Subject: fixed missing useEffect deps --- frontend/src/pages/Profile.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/Profile.tsx b/frontend/src/pages/Profile.tsx index 7e3d603..127eb04 100644 --- a/frontend/src/pages/Profile.tsx +++ b/frontend/src/pages/Profile.tsx @@ -111,19 +111,19 @@ const Profile: React.FC = ({ if (!profile) { navigate('/'); } - }, [profile]); + }, [profile, navigate]); React.useEffect(() => { if (profile) { _get_game_chapters(); } - }, [profile, game]); + }, [profile, game, _get_game_chapters]); React.useEffect(() => { if (profile && game !== '0') { _get_game_maps(); } - }, [profile, game, chapter, chapterData]); + }, [profile, game, chapter, chapterData, _get_game_maps]); if (!profile) { return <>; -- cgit v1.2.3