stupid eslint
Some checks failed
Deploy SSR / deploy (push) Failing after 30s

This commit is contained in:
Lee 2024-09-13 16:40:47 +01:00
parent 7112d3f53b
commit dd3b7256b0
2 changed files with 2 additions and 2 deletions

View File

@ -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}`;

View File

@ -90,7 +90,7 @@ export default function ScoreStats({ score, leaderboard }: Props) {
<div className={`grid grid-cols-3 grid-rows-2 gap-1 ml-0 lg:ml-2`}>
{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 <div key={index} />;
}