1
0
mirror of https://github.com/hyperspacedev/hyperspace synced 2025-01-31 01:29:37 +01:00

Add setState to else clause

This commit is contained in:
Marquis Kurt 2019-04-25 18:28:30 -04:00
parent 75d5086d71
commit 1c663dc079

View File

@ -152,6 +152,10 @@ class ProfilePage extends Component<any, IProfilePageState> {
})
} else {
this.props.enqueueSnackbar("Reached end of posts", { variant: 'error'} );
this.setState({
viewIsLoading: false,
viewDidLoad: true
})
}
}