From 23fb01d32d4c2e125093c4d73c019f35f2185ea3 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 2 May 2022 16:24:19 -0500 Subject: [PATCH] Set onboarding on account creation --- app/soapbox/actions/auth.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/soapbox/actions/auth.js b/app/soapbox/actions/auth.js index 00f9c606d..79ff9d67f 100644 --- a/app/soapbox/actions/auth.js +++ b/app/soapbox/actions/auth.js @@ -13,6 +13,7 @@ import { createAccount } from 'soapbox/actions/accounts'; import { createApp } from 'soapbox/actions/apps'; import { fetchMeSuccess, fetchMeFail } from 'soapbox/actions/me'; import { obtainOAuthToken, revokeOAuthToken } from 'soapbox/actions/oauth'; +import { startOnboarding } from 'soapbox/actions/onboarding'; import snackbar from 'soapbox/actions/snackbar'; import { custom } from 'soapbox/custom'; import KVStore from 'soapbox/storage/kv_store'; @@ -292,7 +293,10 @@ export function register(params) { return dispatch(createAppAndToken()) .then(() => dispatch(createAccount(params))) - .then(({ token }) => dispatch(authLoggedIn(token))); + .then(({ token }) => { + dispatch(startOnboarding()); + return dispatch(authLoggedIn(token)); + }); }; }