Skip to content

Commit

Permalink
Add link to Season Summary from standings pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinsina committed Dec 6, 2023
1 parent 1764e17 commit e0baa17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/layouts/standings.astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const finalData: Array<Record<string, any>> = standingsResults.map(
year,
season_number_of_year,
car_class_id,
"Season Summary": season_id,
division,
division_rank,
overall_rank,
Expand Down Expand Up @@ -64,6 +65,8 @@ const generateLinkForKey = (key: string, resultAtKey: unknown) => {
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") {
return `/Stat-N-Track/user/${id}/season/${resultAtKey}/season-summary`;
}
return null;
};
Expand Down

0 comments on commit e0baa17

Please sign in to comment.