Skip to content

Commit

Permalink
fix(scroll): don't scroll on regulations page if there is a search
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-gueguen committed Nov 5, 2024
1 parent 55b8924 commit b6d43bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/common/hooks/useScroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function useScroll() {
}
return;
}
if (pathname === "/resources/regulations" || search !== "") {
if (pathname === "/resources/regulations" && search !== "") {
return;
}
const mainElements = document.getElementsByTagName("main");
Expand Down

0 comments on commit b6d43bf

Please sign in to comment.