Show Preloader only on first request for comments in Profile sidebar
This commit is contained in:
@@ -210,7 +210,7 @@ export function Profile() {
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
{isCommentsLoading && <Preloader className={styles.preloader} />}
|
||||
{comments === null && isCommentsLoading && <Preloader className={styles.preloader} />}
|
||||
{comments !== null && commentsJSX}
|
||||
</section>
|
||||
{isCurrent ? (
|
||||
|
||||
Reference in New Issue
Block a user