Skip to content

Commit

Permalink
fix: coaches are now able to join locked teams
Browse files Browse the repository at this point in the history
DevNono committed Nov 13, 2023
1 parent 909b3ec commit 9ca01fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(dashboard)/dashboard/register/page.tsx
Original file line number Diff line number Diff line change
@@ -222,7 +222,7 @@ const Register = () => {
const tournamentTable = () => {
const tournamentOption = tournaments.filter((tr) => tr.id === tournament)[0];
const tournamentTeamsRender = (tournamentOption.teams === undefined ? [] : tournamentOption.teams)
.filter((team) => !team.lockedAt)
.filter((team) => (userType === 'coach' ? true : !team.lockedAt))
.map((team) => ({
team: user.askingTeamId === team.id ? `${team.name} (demande en attente)` : team.name,
players: team.players.map(({ username }) => username).join(', '),

0 comments on commit 9ca01fb

Please sign in to comment.