mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-22 23:27:54 -05:00
smarter handling of handleCompleteRegistration
This commit is contained in:
parent
0ebc168f21
commit
65b6475ed6
1 changed files with 5 additions and 3 deletions
|
@ -93,9 +93,11 @@ module.exports.setSearchTerm = searchTerm => ({
|
|||
});
|
||||
|
||||
module.exports.handleCompleteRegistration = createProject => (dispatch => {
|
||||
dispatch(sessionActions.refreshSession());
|
||||
dispatch(module.exports.setRegistrationOpen(false));
|
||||
if (createProject) window.location = '/projects/editor/?tutorial=getStarted';
|
||||
if (createProject) {
|
||||
window.location = '/projects/editor/?tutorial=getStarted';
|
||||
} else {
|
||||
dispatch(module.exports.setRegistrationOpen(false));
|
||||
}
|
||||
});
|
||||
|
||||
module.exports.handleLogIn = (formData, callback) => (dispatch => {
|
||||
|
|
Loading…
Reference in a new issue