Fix profile loading spinner
authorm-gail <34513390+m-gail@users.noreply.github.com>
Mon, 3 Jul 2023 10:56:22 +0000 (12:56 +0200)
committerm-gail <34513390+m-gail@users.noreply.github.com>
Mon, 3 Jul 2023 10:56:22 +0000 (12:56 +0200)
src/shared/components/person/profile.tsx

index 86b01d5805033ac89e9fba8dd2d7bae00a5f59c3..33932af54c98f5e0147cd075f7d761fbed2b13ef 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,