diff --git a/src/app/(steady)/steady/create/questions/page.tsx b/src/app/(steady)/steady/create/questions/page.tsx index dd96824e..61c7538b 100644 --- a/src/app/(steady)/steady/create/questions/page.tsx +++ b/src/app/(steady)/steady/create/questions/page.tsx @@ -25,7 +25,7 @@ const CreateQuestionsPage = () => { const [isTemplateTitleSetting, setIsTemplateTitleSetting] = useState(false); const { toast } = useToast(); const router = useRouter(); - const { steadyState } = useCreateSteadyStore(); + const { steadyState, resetSteadyState } = useCreateSteadyStore(); useEffect(() => { if (!steadyState || Object.keys(steadyState).length === 0) { @@ -103,6 +103,7 @@ const CreateQuestionsPage = () => { variant: "green", }); useCreateSteadyStore.persist.clearStorage(); + resetSteadyState(); router.push("/"); }) .catch(() => {