Skip to content

Commit

Permalink
disable tournament results viewing
Browse files Browse the repository at this point in the history
  • Loading branch information
aaravbajaj012 committed Jan 28, 2024
1 parent 3cbc31d commit 28f704a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/user/scrimmages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ const TableRow: React.FC<{ match: Match }> = ({ match }) => {

const TableBody: React.FC<{ data: Match[] }> = ({ data }) => (
// eslint-disable-next-line react/jsx-key
<tbody>{data && data.map((item: Match) => <TableRow match={item} />)}</tbody>
<tbody>{data && data.map((item: Match) => {
// filter out matches that are tournament matches
if (item.type.toLowerCase() === 'tournament') return null;
return (<TableRow match={item} key={item.id} />);
})}</tbody>
);

// Team Info Component Card and button to request match
Expand Down

0 comments on commit 28f704a

Please sign in to comment.