diff --git a/src/client/.env b/src/client/.env index 0472baa..02a4337 100644 --- a/src/client/.env +++ b/src/client/.env @@ -1,2 +1,2 @@ REACT_APP_API_URL=https://asura.feal.no/api -BROWSER=none \ No newline at end of file +BROWSER=none diff --git a/src/client/src/FrontPage.js b/src/client/src/FrontPage.js index af9afaf..6e07758 100644 --- a/src/client/src/FrontPage.js +++ b/src/client/src/FrontPage.js @@ -104,8 +104,10 @@ function Home() { {/* */} Tournaments - - + + Tournaments + + ); diff --git a/src/client/src/TournamentTeams.js b/src/client/src/TournamentTeams.js index f311c7d..8177ae2 100644 --- a/src/client/src/TournamentTeams.js +++ b/src/client/src/TournamentTeams.js @@ -130,11 +130,6 @@ function TeamEditor(props) { .catch(error => showError(error)); }, [props.selectedTeamId]); - function postEdit() { - let formData = new FormData(); - formData.append("name", document.getElementById("teamNameInput").value); - } - if (props.selectedTeamId === -1 || !team) { return ( @@ -154,7 +149,6 @@ function TeamEditor(props) { function saveTeam() { let formData = new FormData(); formData.append("name", team.name); - console.log(team); let body = new URLSearchParams(formData) fetch(process.env.REACT_APP_API_URL + `/team/${team.id}/edit`, { method: "POST",