Fix for creation issues (maybe temp)

This commit is contained in:
Kristoffer Juelsenn 2022-04-09 11:24:57 +02:00
parent 155d477007
commit 9a27ca4a51
1 changed files with 3 additions and 3 deletions

View File

@ -75,8 +75,8 @@ function TournamentForm(props) {
setMaxTeamsExponent(event.target.value);
}
const [startTime, setStartTime] = React.useState([new Date(), null]);
const [endTime, setEndTime] = React.useState([new Date(), null]);
const [startTime, setStartTime] = React.useState([new Date(), new Date()]);
const [endTime, setEndTime] = React.useState([new Date(), new Date()]);
function submitTournament(event) {
event.preventDefault();
@ -92,7 +92,7 @@ function TournamentForm(props) {
tournamentEnd,
maxTeams
);
console.log(startTime, endTime);
console.log(tournamentStart, tournamentEnd);
}
const marks = [