diff --git a/client/coral-admin/src/containers/Configure/CommentSettings.js b/client/coral-admin/src/containers/Configure/CommentSettings.js
index d9628f352..194af720c 100644
--- a/client/coral-admin/src/containers/Configure/CommentSettings.js
+++ b/client/coral-admin/src/containers/Configure/CommentSettings.js
@@ -11,31 +11,31 @@ import {
Checkbox
} from 'react-mdl';
-const updateModeration = (props) => () => {
- const moderation = props.settings.moderation === 'pre' ? 'post' : 'pre';
- props.updateSettings({moderation});
+const updateModeration = (updateSettings, mod) => () => {
+ const moderation = mod === 'pre' ? 'post' : 'pre';
+ updateSettings({moderation});
};
-const updateInfoBoxEnable = (props) => () => {
- const infoBoxEnable = !props.settings.infoBoxEnable;
- props.updateSettings({infoBoxEnable});
+const updateInfoBoxEnable = (updateSettings, infoBox) => () => {
+ const infoBoxEnable = !infoBox;
+ updateSettings({infoBoxEnable});
};
-const updateInfoBoxContent = (props) => (event) => {
+const updateInfoBoxContent = (updateSettings) => (event) => {
const infoBoxContent = event.target.value;
- props.updateSettings({infoBoxContent});
+ updateSettings({infoBoxContent});
};
-const updateClosedMessage = (props) => (event) => {
+const updateClosedMessage = (updateSettings) => (event) => {
const closedMessage = event.target.value;
- props.updateSettings({closedMessage});
+ updateSettings({closedMessage});
};
const CommentSettings = (props) =>