From ea547750f50ecadb26b5762e4153d48ce0f82133 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Tue, 29 Mar 2022 14:16:20 +0200 Subject: [PATCH 1/2] 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", From af1cef213ecaed74f17ad685a40cca1afe7c56f2 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Tue, 29 Mar 2022 11:02:53 +0200 Subject: [PATCH 2/2] Moved api endpoint --- src/client/.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/.env b/src/client/.env index 0fcd09e..02a4337 100644 --- a/src/client/.env +++ b/src/client/.env @@ -1,2 +1,2 @@ -REACT_APP_API_URL=https://api.asura.feal.no -BROWSER=none \ No newline at end of file +REACT_APP_API_URL=https://asura.feal.no/api +BROWSER=none