From c32f203f2b28dbca0791991e09b645f19cabfd70 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Tue, 19 Jun 2018 10:31:54 +0300 Subject: [PATCH] =?UTF-8?q?Comments=20=E2=86=92=20comments=20on=20frontend?= =?UTF-8?q?=20side?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/app/components/user-info/user-info.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/app/components/user-info/user-info.jsx b/web/app/components/user-info/user-info.jsx index ee2fdaef..ceef362a 100644 --- a/web/app/components/user-info/user-info.jsx +++ b/web/app/components/user-info/user-info.jsx @@ -18,9 +18,8 @@ export default class UserInfo extends Component { componentWillMount() { const { user: { id } } = this.props; - // TODO: change Comments to comments api.getUserComments({ user: id, limit: 10 }) - .then(({ Comments = [] }) => this.setState({ comments: Comments })) + .then(({ comments = [] }) => this.setState({ comments })) .finally(() => this.setState({ isLoading: false })); }