[go: nahoru, domu]

Skip to content

Commit

Permalink
yo
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed Feb 26, 2024
1 parent 5f5df0f commit 0f4e2cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/api/src/router/scouting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ export const scoutingRouter = createTRPCRouter({
},
{} as Record<string, T[]>,
);
const byMatch = groupBy(data, ({ key }) => key);

const byMatch = groupBy(
data,
({ matches }) =>
// biome-ignore lint/style/noNonNullAssertion: <explanation>
matches!.key,
);
return Object.values(byMatch).map((matches) => {
// Keys are guaranteed to be in the form of "frcXXXX" where XXXX is a number
const redTeams = matches
Expand Down

0 comments on commit 0f4e2cf

Please sign in to comment.