aboutsummaryrefslogtreecommitdiff
path: root/src/ReplyForm.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ReplyForm.js')
-rw-r--r--src/ReplyForm.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/ReplyForm.js b/src/ReplyForm.js
index 6695406..70e5d49 100644
--- a/src/ReplyForm.js
+++ b/src/ReplyForm.js
@@ -24,14 +24,7 @@ class ReplyForm extends Component {
}
handleSubmit() {
- const {
- submittedName,
- submittedEmail,
- submittedMessage,
- name,
- email,
- message
- } = this.state;
+ const { name, email, message } = this.state;
this.setState(
{
submittedName: name,
@@ -39,6 +32,7 @@ class ReplyForm extends Component {
submittedMessage: message
},
() => {
+ const { submittedName, submittedEmail, submittedMessage } = this.state;
const data = {
board: this.props.dir,
parent: this.props.parent,
@@ -65,7 +59,6 @@ class ReplyForm extends Component {
return response.json();
})
.then(resource => {
- console.log(resource);
this.setState({ replyRes: resource });
});
}