Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
Signed-off-by: 3nt3 <gott@3nt3.de>
  • Loading branch information
3nt3 committed Feb 25, 2022
1 parent e095600 commit ad97a9f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/AdminDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ const ActivityGraph = (props: {
),
},
]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
}, [requests]);
return (
<div id={css.requestsChart}>
{RequestState.Success === props.requestState ? (
Expand Down Expand Up @@ -368,7 +367,7 @@ function IPAddressLeaderboard(props: {
)
.slice(0, maxItems)
.map((ip) => (
<tr>
<tr key={ip.ip}>
<td>{ip.ip}</td>
<td>{ip.numRequests}</td>
<td>
Expand Down

0 comments on commit ad97a9f

Please sign in to comment.