mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -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());
|
||||
if (createProject) {
|
||||
window.location = '/projects/editor/?tutorial=getStarted';
|
||||
} else {
|
||||
dispatch(module.exports.setRegistrationOpen(false));
|
||||
if (createProject) window.location = '/projects/editor/?tutorial=getStarted';
|
||||
}
|
||||
});
|
||||
|
||||
module.exports.handleLogIn = (formData, callback) => (dispatch => {
|
||||
|
|
Loading…
Reference in a new issue