mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-29 04:38:55 +03:00
Prevent the extra call if posts = 0
This commit is contained in:
parent
fbfb5e5441
commit
f8674963b3
1 changed files with 3 additions and 2 deletions
|
@ -304,12 +304,13 @@ function AccountInfo({
|
||||||
({ relationship, currentID }) => {
|
({ relationship, currentID }) => {
|
||||||
if (!relationship.following) {
|
if (!relationship.following) {
|
||||||
renderFamiliarFollowers(currentID);
|
renderFamiliarFollowers(currentID);
|
||||||
if (!standalone) {
|
if (!standalone && statusesCount > 0) {
|
||||||
|
// Only render posting stats if not standalone and has posts
|
||||||
renderPostingStats();
|
renderPostingStats();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[standalone, id],
|
[standalone, id, statusesCount],
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue