]> Untitled Git - lemmy-ui.git/commitdiff
Merge pull request #1780 from m-gail/fix-profile-loading-spinner
authorSleeplessOne1917 <abias1122@gmail.com>
Mon, 3 Jul 2023 14:15:22 +0000 (14:15 +0000)
committerGitHub <noreply@github.com>
Mon, 3 Jul 2023 14:15:22 +0000 (14:15 +0000)
Fix profile loading spinner

src/shared/components/person/profile.tsx

index ec7538ba8a2cc2e6da05d7aff7a189b266e59dbf..96ac3da388f5e287c8f2881f03400a85057671d9 100644 (file)
@@ -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,