From a94ec01cd203ad3e02ded7065d4ead115655c25f Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Tue, 27 Jan 2026 20:45:00 +0000 Subject: [PATCH] Changes --- src/components/HeritageSection.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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);