remove status from new comment

This commit is contained in:
Riley Davis
2016-12-20 13:23:36 -07:00
parent 7a1c3e730b
commit 96141d8abc
+1 -5
View File
@@ -44,11 +44,7 @@ export const fetchModerationQueueComments = () => {
// Create a new comment
export const createComment = (name, body) => {
return dispatch => {
const comment = {
status: 'Untouched',
body,
name
};
const comment = {body, name};
return coralApi('/comments', {method: 'POST', comment})
.then(res => dispatch({type: actions.COMMENT_CREATE_SUCCESS, comment: res}))
.catch(error => dispatch({type: actions.COMMENT_CREATE_FAILED, error}));