mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +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);
|
const { neighbors } = await getRatingsNeighbors(region, id, size, true);
|
||||||
|
|
||||||
useLeaderboardCache.setState(
|
useLeaderboardCache.setState(
|
||||||
produce((draft: LeaderboardCache) => {
|
produce((draft: LeaderboardCache) => {
|
||||||
neighbors.forEach((neighbor, neighborIndex) => {
|
neighbors.forEach((neighbor, neighborIndex) => {
|
||||||
// const position = neighborIndex - radius + seedingPlayerPosition;
|
|
||||||
const position = neighbor.number - 1;
|
const position = neighbor.number - 1;
|
||||||
|
|
||||||
if (!(position in draft[region][season])) {
|
if (!(position in draft[region][season])) {
|
||||||
|
|||||||
Reference in new issue
Block a user