From 4af86b854d37c2be99c6ffaf1926b13fb6ca66d5 Mon Sep 17 00:00:00 2001 From: Joe Gregory Date: Mon, 3 Jan 2022 13:30:37 -0800 Subject: [PATCH] fix: naming convention for artificially set constant --- gatsby-browser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gatsby-browser.js b/gatsby-browser.js index b1a804848..e488665d4 100644 --- a/gatsby-browser.js +++ b/gatsby-browser.js @@ -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; };