From ea547750f50ecadb26b5762e4153d48ce0f82133 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Tue, 29 Mar 2022 14:16:20 +0200 Subject: [PATCH] Minor cleanup --- src/client/src/FrontPage.js | 16 ---------------- src/client/src/TournamentTeams.js | 6 ------ 2 files changed, 22 deletions(-) diff --git a/src/client/src/FrontPage.js b/src/client/src/FrontPage.js index 3c3c9bb..ed1dbba 100644 --- a/src/client/src/FrontPage.js +++ b/src/client/src/FrontPage.js @@ -113,22 +113,6 @@ function Home() { Tournaments - {/* - - */} -
diff --git a/src/client/src/TournamentTeams.js b/src/client/src/TournamentTeams.js index 1d2ebc7..784a1b0 100644 --- a/src/client/src/TournamentTeams.js +++ b/src/client/src/TournamentTeams.js @@ -115,11 +115,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 ( @@ -139,7 +134,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",