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 (