From dd3b7256b0eaa8d0b5aac64f92cd7e6f121cb80c Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 13 Sep 2024 16:40:47 +0100 Subject: [PATCH] stupid eslint --- src/components/player/player-scores.tsx | 2 +- src/components/player/score/score-stats.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/player/player-scores.tsx b/src/components/player/player-scores.tsx index 3d03eac..2612725 100644 --- a/src/components/player/player-scores.tsx +++ b/src/components/player/player-scores.tsx @@ -139,7 +139,7 @@ export default function PlayerScores({ if (scores) { handleScoreLoad(); } - }, [scores, isError]); + }, [scores, isError, handleScoreLoad]); useEffect(() => { const newUrl = `/player/${player.id}/${pageState.sort}/${pageState.page}`; diff --git a/src/components/player/score/score-stats.tsx b/src/components/player/score/score-stats.tsx index 580dd7e..24c5f7a 100644 --- a/src/components/player/score/score-stats.tsx +++ b/src/components/player/score/score-stats.tsx @@ -90,7 +90,7 @@ export default function ScoreStats({ score, leaderboard }: Props) {
{badges.map((badge, index) => { const toRender = badge.create(score, leaderboard); - let color = badge.color?.(score, leaderboard); + const color = badge.color?.(score, leaderboard); if (toRender === undefined) { return
; }