From 9e018a52c77047e71061d57ca81636831fb0d4c7 Mon Sep 17 00:00:00 2001 From: "lkh14011424@gmail.com" Date: Sat, 28 Sep 2024 11:57:51 +0900 Subject: [PATCH] =?UTF-8?q?[feat/#46]=20=EC=BD=94=EB=93=9C=20=EC=9B=90?= =?UTF-8?q?=EB=B3=B5?= 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 36107b1..0785ee7 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() } }