diff --git a/web/app/components/root/root.jsx b/web/app/components/root/root.jsx index ebc9fa7b..c8b37e2e 100644 --- a/web/app/components/root/root.jsx +++ b/web/app/components/root/root.jsx @@ -57,17 +57,12 @@ export default class Root extends Component { .then(data => store.set('user', data)) .catch(() => store.set('user', {})) .finally(() => { - this.setState({ - isLoaded: true, - isCommentsListLoading: true, - }); - api.find({ sort, url }) .then(({ comments = [] } = {}) => store.set('comments', comments)) .catch(() => store.set('comments', [])) .finally(() => { this.setState({ - isCommentsListLoading: false, + isLoaded: true, user: store.get('user'), });