smarter handling of handleCompleteRegistration

This commit is contained in:
Ben Wheeler 2019-08-27 12:15:49 -04:00
parent 0ebc168f21
commit 65b6475ed6

View file

@ -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 => {