mirror of
https://github.com/liyunze-coding/RythonDev.git
synced 2026-09-22 07:44:26 +00:00
fixed contact page condition
This commit is contained in:
parent
520bec85aa
commit
83671a22b3
1 changed files with 1 additions and 1 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue