diff --git a/components/settings/unified/tabs/SitePrivacyTab.tsx b/components/settings/unified/tabs/SitePrivacyTab.tsx index d7309e2..ffc77de 100644 --- a/components/settings/unified/tabs/SitePrivacyTab.tsx +++ b/components/settings/unified/tabs/SitePrivacyTab.tsx @@ -73,13 +73,9 @@ export default function SitePrivacyTab({ siteId, onDirtyChange }: { siteId: stri // Track dirty state useEffect(() => { - if (!initialRef.current) { - console.log('[Privacy] dirty check skipped — no initialRef') - return - } + if (!initialRef.current) return const current = JSON.stringify({ collectPagePaths, collectReferrers, collectDeviceInfo, collectScreenRes, collectGeoData, hideUnknownLocations, dataRetention, excludedPaths }) const dirty = current !== initialRef.current - console.log('[Privacy] dirty check:', { dirty, collectPagePaths, initial: initialRef.current.substring(0, 50) }) setIsDirty(dirty) onDirtyChange?.(dirty) }, [collectPagePaths, collectReferrers, collectDeviceInfo, collectScreenRes, collectGeoData, hideUnknownLocations, dataRetention, excludedPaths, onDirtyChange]) @@ -119,7 +115,7 @@ export default function SitePrivacyTab({ siteId, onDirtyChange }: { siteId: stri