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
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:
parent
f3c1ad52ec
commit
94ae720b08
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue