pass comment to presubmit hooks

This commit is contained in:
Jeff Nelson
2017-07-31 11:59:15 -04:00
parent 3740dd98e8
commit b62ab9bff0
+1 -1
View File
@@ -62,7 +62,7 @@ class CommentBox extends React.Component {
};
// Execute preSubmit Hooks
this.state.hooks.preSubmit.forEach((hook) => hook());
this.state.hooks.preSubmit.forEach((hook) => hook(comment));
this.setState({loadingState: 'loading'});
postComment(comment, 'comments')