From 83671a22b324b12ee8d82a9145a1bcb565307ec7 Mon Sep 17 00:00:00 2001 From: liyunze <50455574+liyunze-coding@users.noreply.github.com> Date: Sun, 10 Aug 2025 14:34:53 +1000 Subject: [PATCH] fixed contact page condition --- src/components/ui/NavigationBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ui/NavigationBar.tsx b/src/components/ui/NavigationBar.tsx index 589bce5..2406e19 100644 --- a/src/components/ui/NavigationBar.tsx +++ b/src/components/ui/NavigationBar.tsx @@ -59,7 +59,7 @@ export const HoverNavigation = ({ // if on contact page, do not do width 0% useEffect(() => { - setOnContactPage(window.location.href.endsWith("/contact")); + setOnContactPage(window.location.href.includes("/contact")); }, []); useEffect(() => {