mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -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 => {
|
module.exports.handleCompleteRegistration = createProject => (dispatch => {
|
||||||
dispatch(sessionActions.refreshSession());
|
if (createProject) {
|
||||||
dispatch(module.exports.setRegistrationOpen(false));
|
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 => {
|
module.exports.handleLogIn = (formData, callback) => (dispatch => {
|
||||||
|
|
Loading…
Reference in a new issue