From 784f6859e42e1fa0df631395ad88e31458256a63 Mon Sep 17 00:00:00 2001 From: Chris Parsons Date: Mon, 23 Mar 2026 08:49:22 -0700 Subject: [PATCH] Fix oxlint eqeqeq error: use !== null && !== undefined Co-Authored-By: Claude Sonnet 4.6 --- .claude/settings.json | 2 +- app/routes/admin.sports-seasons.$id.elo-ratings.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.claude/settings.json b/.claude/settings.json index b5852fe..146f831 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -6,7 +6,7 @@ "hooks": [ { "type": "command", - "command": "python3 -c \"import sys,json; d=json.load(sys.stdin); f=d.get('tool_input',{}).get('file_path',''); print(f)\" | xargs -I{} sh -c 'case \"{}\" in *.ts|*.tsx) npm run lint:file -- \"{}\" 2>&1 ;; esac'" + "command": "python3 -c \"import sys,json; d=json.load(sys.stdin); f=d.get('tool_input',{}).get('file_path',''); print(f)\" | xargs -I{} sh -c 'case \"{}\" in *.ts|*.tsx) npm run lint:path -- \"{}\" 2>&1 ;; esac'" } ] } diff --git a/app/routes/admin.sports-seasons.$id.elo-ratings.tsx b/app/routes/admin.sports-seasons.$id.elo-ratings.tsx index a4c534a..2249dfc 100644 --- a/app/routes/admin.sports-seasons.$id.elo-ratings.tsx +++ b/app/routes/admin.sports-seasons.$id.elo-ratings.tsx @@ -59,7 +59,7 @@ export async function loader({ params }: Route.LoaderArgs) { const existingElos: Record = {}; for (const ev of existingEVs) { - if (ev.sourceElo != null) { + if (ev.sourceElo !== null && ev.sourceElo !== undefined) { existingElos[ev.participantId] = ev.sourceElo; } }