diff --git a/src/components/navigation/www/navigation.jsx b/src/components/navigation/www/navigation.jsx index 90d34bcad..7bc3ca663 100644 --- a/src/components/navigation/www/navigation.jsx +++ b/src/components/navigation/www/navigation.jsx @@ -217,7 +217,6 @@ class Navigation extends React.Component { {this.props.registrationOpen && ( this.props.useScratch3Registration ? ( diff --git a/src/components/registration/scratch3-registration.jsx b/src/components/registration/scratch3-registration.jsx index c345c168e..03f53d763 100644 --- a/src/components/registration/scratch3-registration.jsx +++ b/src/components/registration/scratch3-registration.jsx @@ -23,22 +23,17 @@ const Registration = ({ ); Registration.propTypes = { - createProjectOnComplete: PropTypes.bool, handleCloseRegistration: PropTypes.func, handleCompleteRegistration: PropTypes.func, isOpen: PropTypes.bool }; -Registration.defaultProps = { - createProjectOnComplete: false -}; - -const mapDispatchToProps = (dispatch, ownProps) => ({ +const mapDispatchToProps = dispatch => ({ handleCloseRegistration: () => { dispatch(navigationActions.setRegistrationOpen(false)); }, handleCompleteRegistration: () => { - dispatch(navigationActions.handleCompleteRegistration(ownProps.createProjectOnComplete)); + dispatch(navigationActions.handleCompleteRegistration()); } }); diff --git a/src/redux/navigation.js b/src/redux/navigation.js index 957f9d4e7..0e71090ae 100644 --- a/src/redux/navigation.js +++ b/src/redux/navigation.js @@ -92,10 +92,9 @@ module.exports.setSearchTerm = searchTerm => ({ searchTerm: searchTerm }); -module.exports.handleCompleteRegistration = createProject => (dispatch => { +module.exports.handleCompleteRegistration = () => (dispatch => { dispatch(sessionActions.refreshSession()); dispatch(module.exports.setRegistrationOpen(false)); - if (createProject) window.location = '/projects/editor/?tutorial=getStarted'; }); module.exports.handleLogIn = (formData, callback) => (dispatch => {