diff --git a/src/lib/layouts/standings.astro b/src/lib/layouts/standings.astro index d788c41..99eaea6 100644 --- a/src/lib/layouts/standings.astro +++ b/src/lib/layouts/standings.astro @@ -37,7 +37,7 @@ const finalData: Array> = standingsResults.map( year, season_number_of_year, car_class_id, - "Season Summary": season_id, + season_summary: season_id, division, division_rank, overall_rank, @@ -73,7 +73,7 @@ const generateLinkForKey = ({ return `/Stat-N-Track/user/${id}/standings/by-year/${resultAtKey}`; } else if (key === "car_class_id") { return `/Stat-N-Track/user/${id}/standings/by-car-class/${resultAtKey}`; - } else if (key === "Season Summary") { + } else if (key === "season_summary") { return `/Stat-N-Track/user/${id}/season/${resultAtKey}/car-class/${carClassId}/season-summary`; } return null; diff --git a/src/lib/utils/field-id-to-label-map.ts b/src/lib/utils/field-id-to-label-map.ts index 339e597..2feed6c 100644 --- a/src/lib/utils/field-id-to-label-map.ts +++ b/src/lib/utils/field-id-to-label-map.ts @@ -36,6 +36,7 @@ export default new Map([ ["overall_rank", "Rank (Overall)"], ["season_id", "Season ID"], ["season_name", "Season Name"], + ["season_summary", "Season Summary"], ["weeks_counted", "Participation Weeks"], ["starts", "Starts"], ["wins", "Wins"],