Skip to content

Commit

Permalink
πŸ“ Chore(#347): μŠ€ν…Œλ”” 등둝 성곡 μ‹œ SteadyState μ΄ˆκΈ°ν™” 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
sscoderati committed Feb 26, 2024
1 parent 18660a7 commit 26b2c7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/(steady)/steady/create/questions/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -103,6 +103,7 @@ const CreateQuestionsPage = () => {
variant: "green",
});
useCreateSteadyStore.persist.clearStorage();
resetSteadyState();
router.push("/");
})
.catch(() => {
Expand Down

0 comments on commit 26b2c7c

Please sign in to comment.