diff --git a/src/pages/api/user/match-history.ts b/src/pages/api/user/match-history.ts index f88f1e0..de54bd4 100644 --- a/src/pages/api/user/match-history.ts +++ b/src/pages/api/user/match-history.ts @@ -90,7 +90,7 @@ export default async function handler( outcome: item.placement ? item.placement.N.toString() : 'PENDING', type: item.category.S, replay: item.s3_key - ? process.env.MATCH_S3_URL_TEMPLATE + item.s3_key.S + ? process.env.REPLAY_S3_URL_TEMPLATE + item.s3_key.S : null, status: item.item_status.S, })); diff --git a/src/pages/api/user/match-request.ts b/src/pages/api/user/match-request.ts index 0651789..3f9dfa2 100644 --- a/src/pages/api/user/match-request.ts +++ b/src/pages/api/user/match-request.ts @@ -33,7 +33,6 @@ export default async function handler( return res.status(200).send({ message: 'Success', data: response.data }); } catch (err) { - console.log(err); return res .status(500) .send({ diff --git a/src/pages/user/profile.tsx b/src/pages/user/profile.tsx index f59c64f..7bd1efa 100644 --- a/src/pages/user/profile.tsx +++ b/src/pages/user/profile.tsx @@ -99,7 +99,7 @@ const Profile: NextPage = ({ const createTeam = async (user: string | null | undefined) => { if (!user) return; const teamName = document.getElementById('teamname') as HTMLInputElement; - // console.log(teamName); + const teamNameValue = teamName.value; await axios .post('/api/user/create-team', { diff --git a/src/pages/user/submissions.tsx b/src/pages/user/submissions.tsx index 74a5c22..cfcb708 100644 --- a/src/pages/user/submissions.tsx +++ b/src/pages/user/submissions.tsx @@ -332,8 +332,8 @@ export const getServerSideProps: GetServerSideProps = async (context) => { teamData: { team, submissionData: [], - configData: configs, }, + configData: configs, }, }; } @@ -359,8 +359,8 @@ export const getServerSideProps: GetServerSideProps = async (context) => { teamData: { team, submissionData: [], - configData: config, }, + configData: configs, }, }; } @@ -397,8 +397,8 @@ export const getServerSideProps: GetServerSideProps = async (context) => { teamData: { team, submissionData, - configData: config, }, + configData: configs, }, }; };