Skip to content

Commit 16fecbd

Browse files
authored
Update index.tsx
1 parent 97971a7 commit 16fecbd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/components/NewFeaturePopup/index.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,20 @@ const NewFeaturePopup: React.FC<NewFeaturePopupProps> = ({
2828
const lastShown = localStorage.getItem(`popup_${featureId}_lastShown`);
2929
const dismissed = localStorage.getItem(`popup_${featureId}_dismissed`);
3030

31-
console.log('🚀 Popup check:', { featureId, lastShown, dismissed, showDays });
32-
3331
if (dismissed) {
34-
console.log('✅ Popup dismissed, not showing');
3532
return;
3633
}
3734

3835
const now = new Date().getTime();
3936

4037
if (!lastShown) {
4138
// First time - show popup immediately
42-
console.log('🎯 First time, showing popup immediately');
4339
setIsVisible(true);
4440
setIsAnimating(true);
4541
localStorage.setItem(`popup_${featureId}_lastShown`, now.toString());
4642
} else {
4743
const daysSinceLastShown = (now - parseInt(lastShown)) / (1000 * 60 * 60 * 24);
48-
console.log('📅 Days since last shown:', daysSinceLastShown);
4944
if (daysSinceLastShown < showDays) {
50-
console.log('✨ Within show period, showing popup immediately');
5145
setIsVisible(true);
5246
setIsAnimating(true);
5347
} else {
@@ -102,4 +96,4 @@ const NewFeaturePopup: React.FC<NewFeaturePopupProps> = ({
10296
);
10397
};
10498

105-
export default NewFeaturePopup;
99+
export default NewFeaturePopup;

0 commit comments

Comments
 (0)