From 7baaaa9db949aa887bb1d003fe4431cd28bd7c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sun, 19 Nov 2023 14:02:00 -0600 Subject: [PATCH] fix: remove seeding player neighbor checking --- src/app/tools/ratings/page.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/app/tools/ratings/page.tsx b/src/app/tools/ratings/page.tsx index 0b8c5ac7a..979e4c1c3 100644 --- a/src/app/tools/ratings/page.tsx +++ b/src/app/tools/ratings/page.tsx @@ -299,19 +299,11 @@ export default function Page() { } } - const seedingPlayerNeighborEntry = Object.entries( - leaderboard[region][season], - ).find(([, player]) => id === player); - - if (seedingPlayerNeighborEntry === undefined) return null; - - // const seedingPlayerPosition = parseInt(seedingPlayerNeighborEntry[0]); const { neighbors } = await getRatingsNeighbors(region, id, size, true); useLeaderboardCache.setState( produce((draft: LeaderboardCache) => { neighbors.forEach((neighbor, neighborIndex) => { - // const position = neighborIndex - radius + seedingPlayerPosition; const position = neighbor.number - 1; if (!(position in draft[region][season])) {