diff --git a/pages/tournament.js b/pages/tournament.js
index 36908cf..49f88d5 100644
--- a/pages/tournament.js
+++ b/pages/tournament.js
@@ -145,7 +145,7 @@ function MatchModal(props) {
switch (props.match.state) {
case 'in_progress':
title = 'Spiel läuft';
- actionButton =
+ actionButton = ;
break;
case 'team1_won':
title = 'Spiel beendet';
@@ -206,22 +206,35 @@ function MatchTable(props) {
case 'undecided':
break;
}
- return (
-
-
-
- {props.match.state !== 'single_team' ?
- | {props.match.scoreTeam1} | : ''}
- {props.match.team1} |
-
-
- {props.match.state !== 'single_team' ?
- | {props.match.scoreTeam2} | : ''}
- {props.match.state === 'single_team' ? 'kein Gegner' : props.match.team2} |
-
-
-
- )
+ if(props.match.state === 'single_team'){
+ return (
+
+
+
+ | {props.match.team1} |
+
+
+ | kein Gegner |
+
+
+
+ )
+ }else{
+ return (
+
+
+
+ | {props.match.scoreTeam1} |
+ {props.match.team1} |
+
+
+ | {props.match.scoreTeam2} |
+ {props.match.team2} |
+
+
+
+ )
+ }
}
function EditableMatchTable(props) {