diff --git a/src/pages/AdminDashboard.tsx b/src/pages/AdminDashboard.tsx index 774a247..814aede 100644 --- a/src/pages/AdminDashboard.tsx +++ b/src/pages/AdminDashboard.tsx @@ -125,8 +125,7 @@ const ActivityGraph = (props: { ), }, ]); - // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); + }, [requests]); return (
{RequestState.Success === props.requestState ? ( @@ -368,7 +367,7 @@ function IPAddressLeaderboard(props: { ) .slice(0, maxItems) .map((ip) => ( - + {ip.ip} {ip.numRequests}