Skip to content

Commit

Permalink
fix: naming convention for artificially set constant
Browse files Browse the repository at this point in the history
  • Loading branch information
josephgregoryii committed Jan 3, 2022
1 parent 26afe3c commit 4af86b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ const onClientEntry = () => {
};

const shouldUpdateScroll = ({ routerProps: { location } }) => {
const transitionDelay = 600;
const TRANSITION_DELAY = 600;

// Scroll window to top position if there is no search (i.e., page load)
if (!location.search) {
window.setTimeout(() => window.scrollTo(0, 0), transitionDelay);
window.setTimeout(() => window.scrollTo(0, 0), TRANSITION_DELAY);
}
return false;
};
Expand Down

0 comments on commit 4af86b8

Please sign in to comment.