mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-25 10:45:41 +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 }) => {
|
||||
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