Skip to content

Commit 0991747

Browse files
authored
Merge pull request #75 from k4m2a/fix/skip-onboarding-after-signup
Skip onboarding flow after signup
2 parents 7257263 + c99a6ea commit 0991747

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/screens/Signup/state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ export function useSubmitSignup() {
337337
* Must happen last so that if the user has multiple tabs open and
338338
* createAccount fails, one tab is not stuck in onboarding — Eric
339339
*/
340-
onboardingDispatch({type: 'start'})
340+
onboardingDispatch({type: 'finish'})
341341
} catch (err) {
342342
const e = err as Error
343343
let errMsg = e.toString()

src/screens/SignupQueued.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ export function SignupQueued() {
4040
try {
4141
const res = await agent.com.atproto.temp.checkSignupQueue()
4242
if (res.data.activated) {
43-
// ready to go, exchange the access token for a usable one and kick off onboarding
43+
// ready to go, exchange the access token for a usable one
4444
await agent.sessionManager.refreshSession()
4545
if (!isSignupQueued(agent.session?.accessJwt)) {
46-
onboardingDispatch({type: 'start'})
46+
// onboarding is skipped entirely, so mark it complete right away
47+
onboardingDispatch({type: 'finish'})
4748
}
4849
} else {
4950
// not ready, update UI

0 commit comments

Comments
 (0)