From 9a5a3ffa67297f323e27bbdd7ac0b2a1a363e0c3 Mon Sep 17 00:00:00 2001 From: mlnwns Date: Mon, 22 Jul 2024 16:33:53 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=84=B1?= =?UTF-8?q?=EA=B3=B5=20=EC=A1=B0=EA=B1=B4=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FE/error/src/pages/LoginPage.jsx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/FE/error/src/pages/LoginPage.jsx b/FE/error/src/pages/LoginPage.jsx index 1fc10869..ef6db730 100644 --- a/FE/error/src/pages/LoginPage.jsx +++ b/FE/error/src/pages/LoginPage.jsx @@ -27,20 +27,18 @@ const LoginPage = () => { ); console.log("response", response); console.log("response.data", response.data); - if (response.data.data.code === "201") { + + if (response.data.code === "201") { localStorage.setItem("slackToken", response.data.data.accessToken); navigate("/"); } else { - setError(response.data.data.message || "Login failed"); - console.log(response.data.data.code); - console.error("Login failed:", response.data.data); + setError(response.data.message || "로그인 실패"); + console.log(response.data.code); + console.error("로그인 실패:", response.data); } } catch (error) { - setError("Authentication failed. Please try again."); - console.error( - "Error during Slack authentication:", - error.response || error - ); + setError("인증에 실패했습니다. 다시 시도해주세요."); + console.error("Slack 인증 중 오류 발생:", error.response || error); } finally { setIsLoading(false); }