From b466c74d7720671938d0db3ea827bdc169be125f Mon Sep 17 00:00:00 2001 From: Lee sang Yeop Date: Tue, 21 Nov 2023 20:33:02 +0900 Subject: [PATCH 1/3] =?UTF-8?q?Fix(JoinLeague):=20=EB=A6=AC=EA=B7=B8=20?= =?UTF-8?q?=EC=B0=B8=EC=97=AC=20=EC=A0=84=EC=86=A1=20=EB=B3=B4=EB=82=BC?= =?UTF-8?q?=EB=95=8C=20=EA=B2=8C=EC=9E=84=EC=95=84=EC=9D=B4=EB=94=94?= =?UTF-8?q?=EC=99=80=20=ED=83=9C=EA=B7=B8=EB=B2=88=ED=98=B8=20=EA=B0=99?= =?UTF-8?q?=EC=9D=B4=20=EB=B3=B4=EB=82=B4=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Modal/JoinLeague/JoinLeague.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Modal/JoinLeague/JoinLeague.tsx b/src/components/Modal/JoinLeague/JoinLeague.tsx index b727732..d16e092 100644 --- a/src/components/Modal/JoinLeague/JoinLeague.tsx +++ b/src/components/Modal/JoinLeague/JoinLeague.tsx @@ -34,7 +34,7 @@ const JoinLeague = ({ onClose, channelLink }: JoinLeagueProps) => { await authAPI.get(SERVER_URL + `/api/participant/stat/${gameIdVal}/${gameTagVal}`) ).data.tier; setTier(userTier); - setGameId(gameIdVal); + setGameId(gameIdVal + '#' + gameTagVal); }; const nicknameHandler: MouseEventHandler = () => { From 2a20c20d4db8f435177c2ab533ead0d05d96b0ff Mon Sep 17 00:00:00 2001 From: Lee sang Yeop Date: Tue, 21 Nov 2023 20:38:31 +0900 Subject: [PATCH 2/3] =?UTF-8?q?Fix(main):=20=EB=A1=9C=EB=94=A9=20=EB=AA=A8?= =?UTF-8?q?=EB=8B=AC=20=EC=A0=9C=EA=B1=B0=20=EB=B0=8F=20=ED=99=88=20?= =?UTF-8?q?=ED=99=94=EB=A9=B4=20=EB=B3=80=EA=B2=BD=20=EC=8B=9C=20=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=EB=8F=84=20=ED=95=A8=EA=BB=98=20=EB=B3=B4?= =?UTF-8?q?=EB=82=B4=EB=8F=84=EB=A1=9D=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/contents/[channelLink]/main.tsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/pages/contents/[channelLink]/main.tsx b/src/pages/contents/[channelLink]/main.tsx index ae3c55c..44dfb2a 100644 --- a/src/pages/contents/[channelLink]/main.tsx +++ b/src/pages/contents/[channelLink]/main.tsx @@ -1,7 +1,6 @@ import authAPI from '@apis/authAPI'; import HomeCard from '@components/Card/HomeCard'; import MainContentModify from '@components/Content/MainContentModify'; -import Loading from '@components/Loading/Loading'; import styled from '@emotion/styled'; import useChannels from '@hooks/useChannels'; import { useQuery } from '@tanstack/react-query'; @@ -37,7 +36,7 @@ const Main = () => { const { channelPermission } = useChannels(); const channelLink = router.query.channelLink; - const { data, isLoading, isSuccess } = useQuery( + const { data, isSuccess } = useQuery( ['getMainContents', channelLink], () => { return fetchData(channelLink as string); @@ -48,14 +47,14 @@ const Main = () => { if (isSuccess && data) setMainContents(data); }, [isSuccess]); - if (isLoading) { - return ; - } - const handleContentUpdate = async (updatedContent: MainContent) => { if (!channelLink) return; - const res = await authAPI({ method: 'post', url: `/api/channel/${channelLink}/main` }); + const res = await authAPI({ + method: 'post', + url: `/api/channel/${channelLink}/main`, + data: updatedContent, + }); if (res.status !== 200) return router.push('/'); setMainContents(updatedContent); From 1d5a4c72ca2c358463c32da5df95c95044cc452a Mon Sep 17 00:00:00 2001 From: Lee sang Yeop Date: Tue, 21 Nov 2023 20:56:22 +0900 Subject: [PATCH 3/3] =?UTF-8?q?Fix(config):=20=EC=84=9C=EB=B2=84=20?= =?UTF-8?q?=EC=A3=BC=EC=86=8C=EC=97=90=20=ED=8F=AC=ED=8A=B8=EB=B2=88?= =?UTF-8?q?=ED=98=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/index.ts b/src/config/index.ts index 4917907..4b84ec2 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -1,4 +1,4 @@ -let SERVER_URL = 'http://leaguehub.co.kr'; +let SERVER_URL = 'http://leaguehub.co.kr:8080'; const SOCKET_URL = 'ws://leaguehub.co.kr/ws/websocket'; if (process.env.NODE_ENV === 'development') {