diff --git a/app/routes/leagues/$leagueId.draft.$seasonId.tsx b/app/routes/leagues/$leagueId.draft.$seasonId.tsx index df163f3..fa3767e 100644 --- a/app/routes/leagues/$leagueId.draft.$seasonId.tsx +++ b/app/routes/leagues/$leagueId.draft.$seasonId.tsx @@ -1021,12 +1021,16 @@ export default function DraftRoom() { const currentRound = draftSlots.length > 0 ? Math.ceil(currentPick / draftSlots.length) : 1; // Determine whose turn it is - const currentDraftSlot = getTeamForPick(currentPick, draftSlots); + const currentDraftSlot = useMemo( + () => getTeamForPick(currentPick, draftSlots), + [currentPick, draftSlots] + ); const isMyTurn = !!( userTeam && currentDraftSlot && currentDraftSlot.team.id === userTeam.id ); const canPick = isMyTurn && season.status === "draft" && !isPaused; // Only team owner on their turn when draft is active + const currentDraftSlotOwnerName = currentDraftSlot ? ownerMap[currentDraftSlot.team.id] : undefined; const currentClockTime = currentDraftSlot ? teamTimers[currentDraftSlot.team.id] : undefined; const currentClockColor = getTimerColorClass(currentClockTime); @@ -1327,7 +1331,12 @@ export default function DraftRoom() {