diff --git a/themes/game/components/BlogListScroll.js b/themes/game/components/BlogListScroll.js
index 77d4d761..cc42438d 100644
--- a/themes/game/components/BlogListScroll.js
+++ b/themes/game/components/BlogListScroll.js
@@ -13,7 +13,9 @@ export const BlogListScroll = props => {
let hasMore = false
const postsToShow =
- posts && Array.isArray(posts) ? deepClone(posts).slice(0, parseInt(siteConfig('POSTS_PER_PAGE')) * page) : []
+ posts && Array.isArray(posts)
+ ? deepClone(posts).slice(0, parseInt(siteConfig('POSTS_PER_PAGE')) * page)
+ : []
if (posts) {
const totalCount = posts.length
@@ -30,7 +32,11 @@ export const BlogListScroll = props => {
const scrollTrigger = useCallback(
throttle(() => {
const scrollS = window.scrollY + window.outerHeight
- const clientHeight = targetRef ? (targetRef.current ? targetRef.current.clientHeight : 0) : 0
+ const clientHeight = targetRef
+ ? targetRef.current
+ ? targetRef.current.clientHeight
+ : 0
+ : 0
if (scrollS > clientHeight + 100) {
handleGetMore()
}
@@ -50,7 +56,9 @@ export const BlogListScroll = props => {