From 89b4843866efee23d390c8230d4b649a4265fe71 Mon Sep 17 00:00:00 2001 From: Yongho Kim Date: Thu, 3 Oct 2024 12:31:44 +0900 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=98=A4=ED=83=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- grass-diary/src/pages/CreateDiary/CreateDiary.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grass-diary/src/pages/CreateDiary/CreateDiary.tsx b/grass-diary/src/pages/CreateDiary/CreateDiary.tsx index 6ecb085..deab6e8 100644 --- a/grass-diary/src/pages/CreateDiary/CreateDiary.tsx +++ b/grass-diary/src/pages/CreateDiary/CreateDiary.tsx @@ -356,10 +356,10 @@ const CreateDiary = () => { } }; - const savDataTime = setInterval(autoSaveDraft, autoSave); + const saveDataTime = setInterval(autoSaveDraft, autoSave); return () => { - clearInterval(savDataTime); + clearInterval(saveDataTime); }; }, [diaryInfo, isContentEmpty]);