From 016834f2015c17e6a0ad9acf9867b832b1a8efbe Mon Sep 17 00:00:00 2001 From: "lkh14011424@gmail.com" Date: Sat, 28 Sep 2024 11:51:04 +0900 Subject: [PATCH] =?UTF-8?q?[feat/#46]=20=EA=B0=80=EC=9D=B4=EB=93=9C=20?= =?UTF-8?q?=ED=8C=9D=EC=97=85=20=EB=82=A0=EC=A7=9C=20=EC=97=B0=EC=82=B0=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useGuidePopup.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useGuidePopup.tsx b/src/hooks/useGuidePopup.tsx index 0785ee7..36107b1 100644 --- a/src/hooks/useGuidePopup.tsx +++ b/src/hooks/useGuidePopup.tsx @@ -7,7 +7,7 @@ export const useGuidePopup = () => { useEffect(() => { const checkPopupDate = () => { const currentDate = new Date().toDateString() - if (!lastClosedDate || new Date(lastClosedDate) < new Date(currentDate)) { + if (!lastClosedDate && new Date(lastClosedDate) < new Date(currentDate)) { openPopup() } }