diff --git a/src/components/party/party.join.js b/src/components/party/party.join.js index e2023d2..beedeb7 100644 --- a/src/components/party/party.join.js +++ b/src/components/party/party.join.js @@ -11,7 +11,7 @@ export default function PartyJoin(props) { function onJoinParty(e) { e.preventDefault(); - axios.get("/api/join/" + partyCode, { withCredentials: true }) + axios.get("/api/join/" + partyCode.trim(), { withCredentials: true }) .then(res => { if (res.status === 200) { console.log(res.data);