From 3c5a17d08677cca48820393fd9c0841d14213465 Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Thu, 13 Feb 2025 00:46:44 +0100 Subject: [PATCH] test1 --- src/components/nav.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/nav.tsx b/src/components/nav.tsx index f549469..da2087c 100644 --- a/src/components/nav.tsx +++ b/src/components/nav.tsx @@ -44,8 +44,8 @@ export function Nav({ entries.forEach(entry => { const target = entry.target.id as keyof (typeof translations.pl)["nav"] if (entry.isIntersecting) { - setActiveSection(target); - if (window.location.hash !== `#${target}` && history.replaceState) { + // setActiveSection(target); + if (history.replaceState) { timeout = setTimeout(() => { history.replaceState(null, "", `#${target}`) }, 150)