diff --git a/client/src/pages/LandingPage.js b/client/src/pages/LandingPage.js index 1b093a4..0396658 100644 --- a/client/src/pages/LandingPage.js +++ b/client/src/pages/LandingPage.js @@ -92,6 +92,7 @@ function LoginBox() { } catch (error) { console.log(error); } finally { + setIsLoading(false); // 소켓 연결 실패했을 때에도 } } }; @@ -135,7 +136,6 @@ function LoginBox() { height="40px" text={Language[mode].join} onClick={_joinGame} - disabled={isLoading} /> diff --git a/client/src/pages/MobileRoomListScreen.js b/client/src/pages/MobileRoomListScreen.js index 7b6ee56..711fb55 100644 --- a/client/src/pages/MobileRoomListScreen.js +++ b/client/src/pages/MobileRoomListScreen.js @@ -25,7 +25,6 @@ function MobileRoomListScreen() { }; ws.send(JSON.stringify(request)); console.log(request); - navigate("/"); } };