MoreFollows: Only show when all follows have been loaded
This commit is contained in:
parent
409431d7e8
commit
886b241433
1 changed files with 2 additions and 1 deletions
|
@ -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 (
|
||||
<MoreFollows visible={!isLoading} count={diffCount} type={scrollKey} />
|
||||
|
|
Loading…
Reference in a new issue