Fix profile loading spinner

This commit is contained in:
m-gail 2023-07-03 12:56:22 +02:00
parent 93d2d56cce
commit fa4fe57a86
No known key found for this signature in database
GPG key ID: C281A4961C081159

View 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,