Fix proptype of startStep

This commit is contained in:
seotts 2021-02-11 15:14:51 -05:00
parent e23b27abc6
commit 5a3250edd5

View file

@ -72,6 +72,7 @@ class MuteModal extends React.Component {
feedback: feedback, feedback: feedback,
comment: this.props.commentContent, comment: this.props.commentContent,
userId: this.props.user.id, userId: this.props.user.id,
username: this.props.user.username,
language: window._locale, language: window._locale,
typeOfMessage: this.props.muteModalMessages.name typeOfMessage: this.props.muteModalMessages.name
} }
@ -79,7 +80,6 @@ class MuteModal extends React.Component {
if (err || res.statusCode !== 200) { if (err || res.statusCode !== 200) {
body = {rejected: 'error'}; body = {rejected: 'error'};
} }
console.log('done');
}); });
this.setState({ this.setState({
@ -262,7 +262,7 @@ MuteModal.propTypes = {
onRequestClose: PropTypes.func, onRequestClose: PropTypes.func,
showFeedback: PropTypes.bool, showFeedback: PropTypes.bool,
showWarning: PropTypes.bool, showWarning: PropTypes.bool,
startStep: PropTypes.oneOf(Object.keys(steps)), startStep: PropTypes.number,
timeMuted: PropTypes.string, timeMuted: PropTypes.string,
user: PropTypes.shape({ user: PropTypes.shape({
id: PropTypes.number, id: PropTypes.number,