mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -05:00
Fix proptype of startStep
This commit is contained in:
parent
e23b27abc6
commit
5a3250edd5
1 changed files with 2 additions and 2 deletions
|
@ -72,6 +72,7 @@ class MuteModal extends React.Component {
|
|||
feedback: feedback,
|
||||
comment: this.props.commentContent,
|
||||
userId: this.props.user.id,
|
||||
username: this.props.user.username,
|
||||
language: window._locale,
|
||||
typeOfMessage: this.props.muteModalMessages.name
|
||||
}
|
||||
|
@ -79,7 +80,6 @@ class MuteModal extends React.Component {
|
|||
if (err || res.statusCode !== 200) {
|
||||
body = {rejected: 'error'};
|
||||
}
|
||||
console.log('done');
|
||||
});
|
||||
|
||||
this.setState({
|
||||
|
@ -262,7 +262,7 @@ MuteModal.propTypes = {
|
|||
onRequestClose: PropTypes.func,
|
||||
showFeedback: PropTypes.bool,
|
||||
showWarning: PropTypes.bool,
|
||||
startStep: PropTypes.oneOf(Object.keys(steps)),
|
||||
startStep: PropTypes.number,
|
||||
timeMuted: PropTypes.string,
|
||||
user: PropTypes.shape({
|
||||
id: PropTypes.number,
|
||||
|
|
Loading…
Reference in a new issue