Skip to content

Commit

Permalink
Merge pull request #241 from TheUpperPart/Fix/#240
Browse files Browse the repository at this point in the history
Fix(JoinLeague): 게임 아이디 조회 시 파라미터 형식 변경
  • Loading branch information
pp449 authored Nov 21, 2023
2 parents 716cda7 + 8aae64f commit abc8284
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Modal/JoinLeague/JoinLeague.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ const JoinLeague = ({ onClose, channelLink }: JoinLeagueProps) => {
return;
}

const concatGameId = gameIdVal + '#' + gameTagVal;

const userTier: string = (
await authAPI.get(SERVER_URL + '/api/participant/stat?gameid=' + concatGameId)
await authAPI.get(SERVER_URL + `/api/participant/stat/${gameIdVal}/${gameTagVal}`)
).data.tier;
setTier(userTier);
setGameId(gameIdVal);
Expand Down

0 comments on commit abc8284

Please sign in to comment.