Set onboarding on account creation
This commit is contained in:
parent
35a731ffd9
commit
23fb01d32d
|
@ -13,6 +13,7 @@ import { createAccount } from 'soapbox/actions/accounts';
|
||||||
import { createApp } from 'soapbox/actions/apps';
|
import { createApp } from 'soapbox/actions/apps';
|
||||||
import { fetchMeSuccess, fetchMeFail } from 'soapbox/actions/me';
|
import { fetchMeSuccess, fetchMeFail } from 'soapbox/actions/me';
|
||||||
import { obtainOAuthToken, revokeOAuthToken } from 'soapbox/actions/oauth';
|
import { obtainOAuthToken, revokeOAuthToken } from 'soapbox/actions/oauth';
|
||||||
|
import { startOnboarding } from 'soapbox/actions/onboarding';
|
||||||
import snackbar from 'soapbox/actions/snackbar';
|
import snackbar from 'soapbox/actions/snackbar';
|
||||||
import { custom } from 'soapbox/custom';
|
import { custom } from 'soapbox/custom';
|
||||||
import KVStore from 'soapbox/storage/kv_store';
|
import KVStore from 'soapbox/storage/kv_store';
|
||||||
|
@ -292,7 +293,10 @@ export function register(params) {
|
||||||
|
|
||||||
return dispatch(createAppAndToken())
|
return dispatch(createAppAndToken())
|
||||||
.then(() => dispatch(createAccount(params)))
|
.then(() => dispatch(createAccount(params)))
|
||||||
.then(({ token }) => dispatch(authLoggedIn(token)));
|
.then(({ token }) => {
|
||||||
|
dispatch(startOnboarding());
|
||||||
|
return dispatch(authLoggedIn(token));
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue