Skip to content

Commit

Permalink
Merge pull request #110 from DDD-Community/feat/#46
Browse files Browse the repository at this point in the history
[feat/#46] 가이드 팝업 날짜 연산 수정
  • Loading branch information
lkhoony authored Sep 28, 2024
2 parents 4ba3953 + 016834f commit 5547402
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 5547402

Please sign in to comment.