From 7dfab6c896e095ef6e052b884fa52253469aa616 Mon Sep 17 00:00:00 2001 From: basssy Date: Mon, 9 Dec 2024 18:20:48 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/main/ChangePasswordPop.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/main/ChangePasswordPop.jsx b/src/components/main/ChangePasswordPop.jsx index 188a3fe7..20089921 100644 --- a/src/components/main/ChangePasswordPop.jsx +++ b/src/components/main/ChangePasswordPop.jsx @@ -73,15 +73,15 @@ export default function ChangePasswordPop(props) { } await patch({ url: '/api/login/v1.0/user/change-password', data: param }).then((res) => { - if (res.result.code === 200) { - if (res.result.resultCode === 'S') { + if (res?.result?.code === 200) { + if (res?.result?.resultCode === 'S') { alert(getMessage('main.popup.login.success')) setSessionState({ ...sessionState, pwdInitYn: 'Y' }) //메인으로 이동 props.setChagePasswordPopOpen(false) - router.push('/') + router.push('/login') } else { - alert(res.result.resultMsg) + alert(res?.result?.resultMsg) } } else { console.log('error')