From 164c545fee1567300dfe6b92845354c224fee017 Mon Sep 17 00:00:00 2001 From: Yoo TaeSeung Date: Thu, 14 Nov 2024 12:48:17 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=EC=A3=BC=EB=AC=B8=EB=B2=88=ED=98=B8?= =?UTF-8?q?=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/steps/CheckInfo/CheckInfo.tsx | 2 +- src/components/common/steps/Complete/Complete.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/common/steps/CheckInfo/CheckInfo.tsx b/src/components/common/steps/CheckInfo/CheckInfo.tsx index 1385dcf..06f37f7 100644 --- a/src/components/common/steps/CheckInfo/CheckInfo.tsx +++ b/src/components/common/steps/CheckInfo/CheckInfo.tsx @@ -64,9 +64,9 @@ const CheckInfo = ({ onNext }: StepProps) => { const handleOrderClick = () => { mutateAsync(orderPostDataState) .then((data) => { - setOrderNumberState(data); resetOrderPostData(); localStorage.clear(); + setOrderNumberState(data); onNext(); }) .catch(() => { diff --git a/src/components/common/steps/Complete/Complete.tsx b/src/components/common/steps/Complete/Complete.tsx index 40a0314..67b8296 100644 --- a/src/components/common/steps/Complete/Complete.tsx +++ b/src/components/common/steps/Complete/Complete.tsx @@ -31,6 +31,7 @@ const Complete = () => { setShowAccountInfo(true); }; const handleButtonClick = () => { + localStorage.clear(); navigate(`/${category}`); }; return (