File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
site/jekyll/getting-started Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -679,7 +679,7 @@ var CommentForm = React.createClass({
679
679
if (!text || !author) {
680
680
return;
681
681
}
682
- this.props.onCommentSubmit({author : author, text : text});
682
+ this.props.onCommentSubmit({Author : author, Text : text});
683
683
this.refs.author.getDOMNode().value = '';
684
684
this.refs.text.getDOMNode().value = '';
685
685
return;
@@ -711,8 +711,8 @@ var CommentBox = React.createClass({
711
711
},
712
712
handleCommentSubmit: function(comment) {
713
713
var data = new FormData();
714
- data.append('Author', comment.author );
715
- data.append('Text', comment.text );
714
+ data.append('Author', comment.Author );
715
+ data.append('Text', comment.Text );
716
716
717
717
var xhr = new XMLHttpRequest();
718
718
xhr.open('post', this.props.submitUrl, true);
You can’t perform that action at this time.
0 commit comments