Skip to content

Commit

Permalink
[feat/#46] 가이드 팝업 날짜 연산 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
lkhoony committed Sep 28, 2024
1 parent 680a5fa commit 016834f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useGuidePopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit 016834f

Please sign in to comment.