From 78e2be8ea490eeba8bba697d080fbe8c730f0126 Mon Sep 17 00:00:00 2001 From: esvyridov Date: Tue, 21 Dec 2021 01:17:49 +0100 Subject: [PATCH] Show Preloader only on first request for comments in Profile sidebar --- frontend/app/components/profile/profile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/components/profile/profile.tsx b/frontend/app/components/profile/profile.tsx index c180b0bb..f39049d5 100644 --- a/frontend/app/components/profile/profile.tsx +++ b/frontend/app/components/profile/profile.tsx @@ -210,7 +210,7 @@ export function Profile() { )} - {isCommentsLoading && } + {comments === null && isCommentsLoading && } {comments !== null && commentsJSX} {isCurrent ? (