diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index 6e13a8f..ec27f82 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -172,7 +172,7 @@ class Main extends Component { Registrace } - {(this.state.login_status.racers || []).length > 1 && + {(this.state.login_status.racers || []).length > 0 && @@ -199,7 +199,32 @@ class Main extends Component { {this.state.status_text} } {this.state.page == "#racers" && - this.state.login_status.racers +
+ + + + + + + + + + + + + {this.state.login_status.racers.map(racer => + + + + + + + + )} + + +
JménoPřijmeníEmailTeamDatum narozeníZaplatil
{racer.first_name}{racer.last_name}{racer.email}{racer.team}{racer.date_of_birth}{racer.paid}
+
} {this.state.page == "#register_racer" &&