mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
fix: remove seeding player neighbor checking
This commit is contained in:
1 parent
c1ecef0179
commit
7baaaa9db9
1 file changed
-8
@@ -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])) {
|
||||
|
||||
Reference in new issue
Block a user