Skip to content

Commit

Permalink
fix match names
Browse files Browse the repository at this point in the history
  • Loading branch information
tytremblay committed Nov 30, 2023
1 parent cd115ec commit 0ac5905
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/matches/MatchTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function MatchTitle(props: MatchTitleProps) {
/>
) : (
<h2
className="min-w-0 text-sm font-semibold leading-6 text-white truncate cursor-text"
className="min-w-0 text-sm font-semibold leading-6 text-white truncate cursor-text uppercase"
onClick={() => setEditing(true)}
>
{props.match.name || 'Add name'}
Expand Down
7 changes: 1 addition & 6 deletions src/state/useMatches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,7 @@ export function setMatchesFromTBA(tbaEvent: TBAEvent, tbaMatches: TBAMatch[]) {
return parseInt(matchNumber);
}
const matches: SplitterMatch[] = tbaMatches.map((t) => {
let name = '';
if (t.comp_level === 'qm') {
name = `${t.comp_level.toUpperCase()}${t.match_number}`;
} else {
name = `${t.comp_level.toUpperCase()}${t.set_number}-${t.match_number}`;
}
let name = t.key.split('_')[1];

const description = `${t.alliances.red.team_keys
.map(matchKeyToNumber)
Expand Down

0 comments on commit 0ac5905

Please sign in to comment.