Fix manage page layout when tournament has started

This commit is contained in:
Kalle
2022-04-16 11:40:49 +03:00
parent 9beb35ab75
commit 32c823348f

View File

@@ -145,7 +145,7 @@ function RowContents({
<input type="hidden" name="teamId" value={team.id} />
</Form>
<div className="tournament__manage__teams-list-row">
{tournamentHasNotStarted(tournament) && (
{tournamentHasNotStarted(tournament) ? (
<Button
type="button"
name="_action"
@@ -157,6 +157,8 @@ function RowContents({
>
<TrashIcon className="tournament__manage__trash-icon" />
</Button>
) : (
<div />
)}
<div>{team.name}</div>
<div>