diff --git a/src/components/HeritageSection.tsx b/src/components/HeritageSection.tsx index 5568973..1c3c873 100644 --- a/src/components/HeritageSection.tsx +++ b/src/components/HeritageSection.tsx @@ -36,17 +36,13 @@ const HeritageSection = () => { const heroObserver = new IntersectionObserver((entries) => { entries.forEach((entry) => { - if (entry.isIntersecting) { - setHeroVisible(true); - } + setHeroVisible(entry.isIntersecting); }); }, observerOptions); const cookiesObserver = new IntersectionObserver((entries) => { entries.forEach((entry) => { - if (entry.isIntersecting) { - setCookiesVisible(true); - } + setCookiesVisible(entry.isIntersecting); }); }, observerOptions);