Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Move onboarding start to after successfull account creation (#4381)

* Move onboarding start to after successfull account creation

* Remove unused dispatch

authored by

Eric Bailey and committed by
GitHub
51594952 07c2be25

+5 -2
+5 -2
src/screens/Signup/state.ts
··· 252 252 dispatch({type: 'setIsLoading', value: true}) 253 253 254 254 try { 255 - onboardingDispatch({type: 'start'}) // start now to avoid flashing the wrong view 256 255 await createAccount({ 257 256 service: state.serviceUrl, 258 257 email: state.email, ··· 262 261 inviteCode: state.inviteCode.trim(), 263 262 verificationCode: verificationCode, 264 263 }) 264 + /* 265 + * Must happen last so that if the user has multiple tabs open and 266 + * createAccount fails, one tab is not stuck in onboarding — Eric 267 + */ 268 + onboardingDispatch({type: 'start'}) 265 269 } catch (e: any) { 266 - onboardingDispatch({type: 'skip'}) // undo starting the onboard 267 270 let errMsg = e.toString() 268 271 if (e instanceof ComAtprotoServerCreateAccount.InvalidInviteCodeError) { 269 272 dispatch({