From c9072e9c0b5313de7cb96637c8d92f67ad2a0bb8 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 20 Feb 2026 01:02:17 +0000 Subject: [PATCH] Clean up dead expectedValue references after hiding EV column - Remove expectedValue from AvailableParticipantsSection interface - Remove EV column from Force Manual Pick commissioner dialog - Remove expectedValue from participants loader SELECT and parsing step - Retain ORDER BY expectedValue for default sort order https://claude.ai/code/session_016oJK1gmWZ48YWEZmVqm6f9 --- app/components/draft/AvailableParticipantsSection.tsx | 1 - app/routes/leagues/$leagueId.draft.$seasonId.tsx | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/app/components/draft/AvailableParticipantsSection.tsx b/app/components/draft/AvailableParticipantsSection.tsx index ce88d95..e877be2 100644 --- a/app/components/draft/AvailableParticipantsSection.tsx +++ b/app/components/draft/AvailableParticipantsSection.tsx @@ -6,7 +6,6 @@ interface AvailableParticipantsSectionProps { participants: Array<{ id: string; name: string; - expectedValue: number; sport: { id: string; name: string; diff --git a/app/routes/leagues/$leagueId.draft.$seasonId.tsx b/app/routes/leagues/$leagueId.draft.$seasonId.tsx index 5eb0700..a06917f 100644 --- a/app/routes/leagues/$leagueId.draft.$seasonId.tsx +++ b/app/routes/leagues/$leagueId.draft.$seasonId.tsx @@ -123,7 +123,6 @@ export async function loader(args: any) { .select({ id: schema.participants.id, name: schema.participants.name, - expectedValue: schema.participants.expectedValue, sport: schema.sports, }) .from(schema.participants) @@ -145,11 +144,6 @@ export async function loader(args: any) { asc(schema.participants.name) ); - // Parse decimal expectedValue (Drizzle returns strings for decimal columns) - availableParticipants = availableParticipants.map((p: any) => ({ - ...p, - expectedValue: parseFloat(p.expectedValue) || 0, - })); } // Load user's team queue if they have a team @@ -1016,7 +1010,6 @@ export default function DraftRoom() { Participant Sport - EV Action @@ -1059,9 +1052,6 @@ export default function DraftRoom() { {participant.sport.name} - - {participant.expectedValue ? participant.expectedValue.toFixed(1) : "—"} -