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 })); }