From 9a27ca4a517af1bb08075f03673b255ac1eed411 Mon Sep 17 00:00:00 2001 From: Kristoffer Juelsen Date: Sat, 9 Apr 2022 11:24:57 +0200 Subject: [PATCH] Fix for creation issues (maybe temp) --- src/client/src/TournamentCreator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/src/TournamentCreator.js b/src/client/src/TournamentCreator.js index 1eaa89d..bfbfb4a 100644 --- a/src/client/src/TournamentCreator.js +++ b/src/client/src/TournamentCreator.js @@ -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 = [