diff --git a/examples/gatsbygram/gatsby-browser.js b/examples/gatsbygram/gatsby-browser.js index 7317ce4192231..0bdbd8579d616 100644 --- a/examples/gatsbygram/gatsby-browser.js +++ b/examples/gatsbygram/gatsby-browser.js @@ -2,11 +2,7 @@ exports.shouldUpdateScroll = args => { const windowWidth = window.innerWidth // Scroll position only matters on mobile as on larger screens, we use a // modal. - if (windowWidth < 750) { - return true - } else { - return false - } + return windowWidth < 750 } exports.onInitialClientRender = () => {