From 886b24143353d9244546953d31a52240553d82e2 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 7 Jun 2020 15:09:25 -0500 Subject: [PATCH] MoreFollows: Only show when all follows have been loaded --- app/soapbox/components/scrollable_list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/soapbox/components/scrollable_list.js b/app/soapbox/components/scrollable_list.js index 617cae7b4..d5e4975a1 100644 --- a/app/soapbox/components/scrollable_list.js +++ b/app/soapbox/components/scrollable_list.js @@ -207,9 +207,10 @@ export default class ScrollableList extends PureComponent { } getMoreFollows = () => { - const { scrollKey, isLoading, diffCount } = this.props; + const { scrollKey, isLoading, diffCount, hasMore } = this.props; const isMoreFollows = ['followers', 'following'].some(k => k === scrollKey); if (!(diffCount && isMoreFollows)) return null; + if (hasMore) return null; return (