Fix calculatePickInfo return type to include rawPickInRound
All checks were successful
🚀 Deploy / 🧪 Test (pull_request) Successful in 1m31s
🚀 Deploy / ʦ TypeScript (pull_request) Successful in 2m19s
🚀 Deploy / 🔍 Lint (pull_request) Successful in 55s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Chris Parsons 2026-05-21 21:11:38 -07:00
parent f3c1ad52ec
commit 94ae720b08

View file

@ -330,7 +330,7 @@ export async function getTopAvailableParticipant(
export function calculatePickInfo(
pickNumber: number,
teamCount: number
): { round: number; pickInRound: number; teamIndex: number } {
): { round: number; pickInRound: number; teamIndex: number; rawPickInRound: number } {
const round = Math.ceil(pickNumber / teamCount);
const rawPickInRound = ((pickNumber - 1) % teamCount) + 1;