diff --git a/nextjs-app/app/rankings/page.tsx b/nextjs-app/app/rankings/page.tsx index 7c1ab4c..96f8882 100644 --- a/nextjs-app/app/rankings/page.tsx +++ b/nextjs-app/app/rankings/page.tsx @@ -29,7 +29,7 @@ export default async function RankingsPage({ searchParams }: RankingsPageProps) const { metric: metricParam, local_authority, year: yearParam, phase: phaseParam } = await searchParams; const phase = phaseParam || 'primary'; - const metric = metricParam || (phase === 'secondary' ? 'attainment_8_score' : 'rwm_expected_pct'); + const metric = metricParam || (phase === 'secondary' ? 'attainment_8_score' : 'rwm_high_pct'); const year = yearParam ? parseInt(yearParam) : undefined; // Fetch rankings data with error handling diff --git a/nextjs-app/components/RankingsView.tsx b/nextjs-app/components/RankingsView.tsx index b00394c..cc46d75 100644 --- a/nextjs-app/components/RankingsView.tsx +++ b/nextjs-app/components/RankingsView.tsx @@ -74,7 +74,7 @@ export function RankingsView({ }; const handlePhaseChange = (phase: string) => { - const defaultMetric = phase === 'secondary' ? 'attainment_8_score' : 'rwm_expected_pct'; + const defaultMetric = phase === 'secondary' ? 'attainment_8_score' : 'rwm_high_pct'; updateFilters({ phase, metric: defaultMetric }); };