diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 5c6f1ce..4ccf7be 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -1333,7 +1333,6 @@ function AppContent() { useEffect(() => { if (!['teams', 'team', 'battle-logs'].includes(route.page)) return - if (leaderboard.status === 'ready' || leaderboard.status === 'loading') return const controller = new AbortController() setLeaderboard({ status: 'loading', data: null, error: null }) @@ -1347,11 +1346,10 @@ function AppContent() { }) return () => controller.abort() - }, [leaderboard.status, route.page]) + }, [route.page]) useEffect(() => { if (route.page !== 'players') return - if (playerLeaderboard.status === 'ready' || playerLeaderboard.status === 'loading') return const controller = new AbortController() setPlayerLeaderboard({ status: 'loading', data: null, error: null }) @@ -1365,11 +1363,10 @@ function AppContent() { }) return () => controller.abort() - }, [playerLeaderboard.status, route.page]) + }, [route.page]) useEffect(() => { if (route.page !== 'home') return - if (homeTeams.status === 'ready' || homeTeams.status === 'loading') return const controller = new AbortController() setHomeTeams({ status: 'loading', data: null, error: null }) @@ -1383,7 +1380,7 @@ function AppContent() { }) return () => controller.abort() - }, [homeTeams.status, route.page]) + }, [route.page]) useEffect(() => { if (!['teams', 'team', 'battle-logs'].includes(route.page)) return