From 49f4f2c484474d6e70bb3c390b34fbf244b26275 Mon Sep 17 00:00:00 2001 From: EunBae Gong <76601773+eunbae0@users.noreply.github.com> Date: Wed, 31 May 2023 14:43:56 +0900 Subject: [PATCH] fix: bug fix (#139) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 첫번째 페이지에서만 중복 확인 에러문구 뜨도록 변경 * feat: mbti 완료 state 초기화 --- src/page/common/applyMyInfoStep/index.tsx | 2 +- src/page/personal/FirstStep/FourthPage.tsx | 2 +- src/page/personal/FirstStep/index.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/page/common/applyMyInfoStep/index.tsx b/src/page/common/applyMyInfoStep/index.tsx index 5d00ab2..ae06cef 100644 --- a/src/page/common/applyMyInfoStep/index.tsx +++ b/src/page/common/applyMyInfoStep/index.tsx @@ -24,7 +24,7 @@ const ApplyMyInfoStep = () => { const [isModalOpen, setisModalOpen] = useState(false); const handleDoubleCheckInfo = () => { - if (!isDoubleCheck) { + if (!isDoubleCheck && curPage === 1) { setisModalOpen(true); setTimeout(() => { setisModalOpen(false); diff --git a/src/page/personal/FirstStep/FourthPage.tsx b/src/page/personal/FirstStep/FourthPage.tsx index 8b88cd8..f43c04f 100644 --- a/src/page/personal/FirstStep/FourthPage.tsx +++ b/src/page/personal/FirstStep/FourthPage.tsx @@ -19,7 +19,7 @@ const FourthPage = ({ setIsFinishPage }: StepProps) => { if (isFinishMbtiSelect) { dispatch(setInfoMbti(mbtiValue)); setIsFinishPage(true); - } + } else setIsFinishPage(false); }, [dispatch, mbtiValue, setIsFinishPage]); return ( diff --git a/src/page/personal/FirstStep/index.tsx b/src/page/personal/FirstStep/index.tsx index 6cb7a73..1a030ab 100644 --- a/src/page/personal/FirstStep/index.tsx +++ b/src/page/personal/FirstStep/index.tsx @@ -27,7 +27,7 @@ const PersonalFirstStep = () => { const [isModalOpen, setisModalOpen] = useState(false); const handleDoubleCheckInfo = () => { - if (!isDoubleCheck) { + if (!isDoubleCheck && curPage === 1) { setisModalOpen(true); setTimeout(() => { setisModalOpen(false);