Skip to content

Commit

Permalink
♻️ refactor: 코드 오타 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
KKYHH committed Oct 3, 2024
1 parent b4df613 commit 89b4843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grass-diary/src/pages/CreateDiary/CreateDiary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,10 @@ const CreateDiary = () => {
}
};

const savDataTime = setInterval(autoSaveDraft, autoSave);
const saveDataTime = setInterval(autoSaveDraft, autoSave);

return () => {
clearInterval(savDataTime);
clearInterval(saveDataTime);
};
}, [diaryInfo, isContentEmpty]);

Expand Down

0 comments on commit 89b4843

Please sign in to comment.