From ef8ba3adb5cdc396b584d48a1c6fb2095e53b2b5 Mon Sep 17 00:00:00 2001 From: Jon Saad-Falcon Date: Sun, 12 Jul 2026 21:51:05 +0000 Subject: [PATCH] Fix leaderboard savings lookup after provider-key rename PR #634 renamed the Anthropic cost-comparison provider key `claude-opus-4.6` -> `claude-fable-5` but missed one consumer: App.tsx looks up the Anthropic entry by that key to compute the `dollar_savings` value submitted to the leaderboard. After the rename `per_provider.find(p => p.provider === 'claude-opus-4.6')` returned undefined, so this path silently submitted dollar_savings = 0. Point the lookup at the new key. Co-Authored-By: Claude Opus 4.8 --- frontend/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index d9fb520df7..f70f8a95f1 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -89,7 +89,7 @@ export default function App() { setSavings(data); if (optInEnabled && optInDisplayName && data) { const claudeEntry = data.per_provider.find( - (p) => p.provider === 'claude-opus-4.6', + (p) => p.provider === 'claude-fable-5', ); const dollarSavings = claudeEntry ? claudeEntry.total_cost : 0; const energySaved = data.per_provider.reduce(