This commit is contained in:
Martin Quarda 2024-10-10 00:14:45 +02:00
parent 2f33df8dcb
commit 4902f2e297

View File

@ -103,7 +103,7 @@ class Main extends Component {
}).catch((error) => { }).catch((error) => {
this.setState({ this.setState({
progress: false, progress: false,
status_text: "Chyba: " + error.response.status +", " + error.response.data, status_text: "Chyba: " + error.response.status +", " + error.response.data.reason,
status: "failed", status: "failed",
}) })
}); });
@ -190,7 +190,7 @@ class Main extends Component {
</div>} </div>}
{this.state.page == "#register_racer" && {this.state.page == "#register_racer" &&
<div> <div>
<form id="form" class="container" action="/api/register_racer " onSubmit={(e) => this.onSubmit(e)}> <form id="form" class="container" action="/api/register_racer" onSubmit={(e) => this.onSubmit(e)}>
<h1>Registrace Závodníka</h1> <h1>Registrace Závodníka</h1>
<div class="mb-3"> <div class="mb-3">
<label for="first_name" class="form-label">Jméno</label> <label for="first_name" class="form-label">Jméno</label>