We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8babe21 commit 91fec38Copy full SHA for 91fec38
src/services/CurrentTeams.tsx
@@ -39,7 +39,20 @@ async function getFiveVFiveSeasons(): Promise<Array<{ name: string; id: number }
39
name: x.name,
40
id: x.id,
41
}));
42
- console.log({ ans });
+
43
+ ans.forEach((season) => {
44
+ const SEASON_REMAP: { [id: string]: string | null } = {
45
+ // So apparently they named the playoffs incorrectly. I guess I'll just include a generalized rename
46
+ // to handle this if it happens in the future.
47
+ ["2023-2023 SKAHL Fall-Winter Playoffs"]: "2023-2024 SKAHL Fall-Winter Playoffs",
48
+ };
49
+ if (SEASON_REMAP[season.name]) {
50
+ season.name = SEASON_REMAP[season.name] as string;
51
+ } else {
52
+ return season;
53
+ }
54
+ });
55
56
return ans;
57
}
58
0 commit comments