From b62ab9bff09712b590184b68f2e0e832a4ea5b88 Mon Sep 17 00:00:00 2001 From: Jeff Nelson Date: Mon, 31 Jul 2017 08:21:52 -0400 Subject: [PATCH] pass comment to presubmit hooks --- client/talk-plugin-commentbox/CommentBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/talk-plugin-commentbox/CommentBox.js b/client/talk-plugin-commentbox/CommentBox.js index 084e67fc4..d0fa7d72f 100644 --- a/client/talk-plugin-commentbox/CommentBox.js +++ b/client/talk-plugin-commentbox/CommentBox.js @@ -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')