summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/create_post.jsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/webapp/components/create_post.jsx b/webapp/components/create_post.jsx
index 4587f3a90..e7fafc514 100644
--- a/webapp/components/create_post.jsx
+++ b/webapp/components/create_post.jsx
@@ -170,10 +170,11 @@ export default class CreatePost extends React.Component {
if (err.sendMessage) {
this.sendMessage(post);
} else {
- const state = {};
- state.serverError = err.message;
- state.submitting = false;
- this.setState({state});
+ this.setState({
+ serverError: err.message,
+ submitting: false,
+ message: post.message
+ });
}
}
);