Add eslint ignore on effect that fetches entries on admin opening

This commit is contained in:
AlexandreSi
2022-04-05 11:14:23 +02:00
parent 13ec8378e7
commit 852223f2eb

View File

@@ -377,6 +377,8 @@ export const LeaderboardAdmin = ({ onLoading, project }: Props) => {
React.useEffect(() => {
if (currentLeaderboard) onFetchLeaderboardEntries();
// This has to be executed on component mount to refresh entries on each admin opening
// eslint-disable-next-line
}, []);
const onCopy = React.useCallback(