From 06d6bd4b22104a33ce44896ff05167e35b62ffab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=A7=88=ED=98=84=EC=9A=B0?= Date: Mon, 27 Nov 2023 17:08:46 +0900 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=EC=9D=B4=EB=A9=94=EC=9D=BC=20?= =?UTF-8?q?=EA=B2=80=EC=A6=9D=EC=9D=84=20=EC=95=9E=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Register/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Register/index.tsx b/src/components/Register/index.tsx index ca56558..c1cec91 100644 --- a/src/components/Register/index.tsx +++ b/src/components/Register/index.tsx @@ -50,12 +50,13 @@ const RegisterPage = (props: {step: Step, setStep: Dispatch { const email = localStorage.getItem("email") ?? ""; - setInfo({...info, email}); if (!email || email === "") { alert("다시 로그인 해주세요"); window.location.href = "/"; } + + setInfo({...info, email}); }, []); From a894140f883e5ed9760de654d8eb44094fbd9f19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=A7=88=ED=98=84=EC=9A=B0?= Date: Mon, 27 Nov 2023 17:11:11 +0900 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85?= =?UTF-8?q?=20=EC=A4=91=20=EB=92=A4=EB=A1=9C=EA=B0=80=EA=B8=B0=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Register/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Register/index.tsx b/src/components/Register/index.tsx index c1cec91..64d7db6 100644 --- a/src/components/Register/index.tsx +++ b/src/components/Register/index.tsx @@ -113,7 +113,7 @@ const RegisterPage = (props: {step: Step, setStep: Dispatch
- + 회원가입
{getData.title} From 06db4f0cbc8c0b51d21ba4c4300bc2f517a3ed62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=A7=88=ED=98=84=EC=9A=B0?= Date: Mon, 27 Nov 2023 17:17:49 +0900 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=EA=B0=80=EC=9E=85=EC=9D=84=20?= =?UTF-8?q?=EC=9C=84=ED=95=9C=20=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85=20?= =?UTF-8?q?=EC=97=AC=EB=B6=80=EC=99=80=20=EC=9D=B4=EB=A9=94=EC=9D=BC=20?= =?UTF-8?q?=EB=8D=B0=EC=9D=B4=ED=84=B0=EB=A5=BC=20=EC=98=A8=EB=B3=B4?= =?UTF-8?q?=EB=94=A9=20=EC=B2=AB=ED=99=94=EB=A9=B4=EA=B3=BC=20=ED=99=88?= =?UTF-8?q?=ED=99=94=EB=A9=B4=EC=97=90=EC=84=9C=20=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Register/index.tsx | 3 --- src/pages/Home/Home.tsx | 3 +++ src/pages/Onboarding/index.tsx | 7 ++++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/Register/index.tsx b/src/components/Register/index.tsx index 64d7db6..c24ac12 100644 --- a/src/components/Register/index.tsx +++ b/src/components/Register/index.tsx @@ -89,9 +89,6 @@ const RegisterPage = (props: {step: Step, setStep: Dispatch { const accessToken = localStorage.getItem("accessToken"); const refreshToken = localStorage.getItem("refreshToken"); + localStorage.removeItem("email"); + localStorage.removeItem("isRegister"); + if (!(accessToken && refreshToken)) { alert("로그아웃 되었습니다"); window.location.href = "/"; diff --git a/src/pages/Onboarding/index.tsx b/src/pages/Onboarding/index.tsx index e4c3d44..c155d1c 100644 --- a/src/pages/Onboarding/index.tsx +++ b/src/pages/Onboarding/index.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, {useEffect} from 'react'; import Layout from "../../layout/Layout"; import Screen from "../../layout/Screen/Screen"; import styled from "styled-components"; @@ -14,6 +14,11 @@ const Onboarding = () => { localStorage.setItem("isRegister", "false"); } + useEffect(() => { + localStorage.removeItem("email"); + localStorage.removeItem("isRegister"); + }, []); + return ( <>