We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5547402 + 9e018a5 commit 63347daCopy full SHA for 63347da
src/hooks/useGuidePopup.tsx
@@ -7,7 +7,7 @@ export const useGuidePopup = () => {
7
useEffect(() => {
8
const checkPopupDate = () => {
9
const currentDate = new Date().toDateString()
10
- if (!lastClosedDate && new Date(lastClosedDate) < new Date(currentDate)) {
+ if (!lastClosedDate || new Date(lastClosedDate) < new Date(currentDate)) {
11
openPopup()
12
}
13
0 commit comments