Fix preferred player name resolution
Some checks failed
CI / backend (push) Has been cancelled
CI / frontend (push) Has been cancelled
CI / compose (push) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-20 17:15:42 +03:00
parent fa4edc0df5
commit ffa50f20a7
3 changed files with 15 additions and 6 deletions

View File

@@ -150,11 +150,11 @@ const players = [
makePlayer('p11', 'Echo', 26, 32, 31),
makePlayer('p12', 'Zenith', 28, 30, 35),
]
players[1].preferredPlayerIds = ['p1']
players[1].preferredPlayerIds = ['p12']
players[4].preferredPlayerIds = ['p1']
players[0].avoidedPlayerIds = ['p3']
export const demoRegistrations: Registration[] = players.map((player, index) => ({
export const demoRegistrations: Registration[] = players.slice(0, -1).map((player, index) => ({
id: `reg-${index + 1}`,
player,
status: index < 9 ? 'going' : index < 11 ? 'maybe' : 'not_going',