From: m-gail <34513390+m-gail@users.noreply.github.com>
Date: Mon, 3 Jul 2023 10:56:22 +0000 (+0200)
Subject: Fix profile loading spinner
X-Git-Url: http://these/git/%7B%60%24%7BarchiveTodayUrl%7D/%24%7B%60data:application/static/git-favicon.png?a=commitdiff_plain;h=fa4fe57a8678528541560e90f73a058086882235;p=lemmy-ui.git

Fix profile loading spinner
---

diff --git a/src/shared/components/person/profile.tsx b/src/shared/components/person/profile.tsx
index 86b01d5..33932af 100644
--- a/src/shared/components/person/profile.tsx
+++ b/src/shared/components/person/profile.tsx
@@ -232,7 +232,7 @@ export class Profile extends Component<
   async fetchUserData() {
     const { page, sort, view } = getProfileQueryParams();
 
-    this.setState({ personRes: { state: "empty" } });
+    this.setState({ personRes: { state: "loading" } });
     this.setState({
       personRes: await HttpService.client.getPersonDetails({
         username: this.props.match.params.username,