Prevent the extra call if posts = 0
This commit is contained in:
parent
fbfb5e5441
commit
f8674963b3
|
@ -304,12 +304,13 @@ function AccountInfo({
|
|||
({ relationship, currentID }) => {
|
||||
if (!relationship.following) {
|
||||
renderFamiliarFollowers(currentID);
|
||||
if (!standalone) {
|
||||
if (!standalone && statusesCount > 0) {
|
||||
// Only render posting stats if not standalone and has posts
|
||||
renderPostingStats();
|
||||
}
|
||||
}
|
||||
},
|
||||
[standalone, id],
|
||||
[standalone, id, statusesCount],
|
||||
);
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue