start onboarding only for new account creations

This commit is contained in:
Ansh Nanda
2023-08-28 18:53:58 -07:00
parent bcef7400db
commit 8f0f3be8fb
3 changed files with 17 additions and 20 deletions
+2 -2
View File
@@ -109,10 +109,10 @@ export class CreateAccountModel {
this.setError('')
this.setIsProcessing(true)
// open the onboarding modal after the session is created
// open the onboarding screens after the session is created
const sessionReadySub = this.rootStore.onSessionReady(() => {
sessionReadySub.remove()
this.rootStore.shell.openModal({name: 'onboarding'})
this.rootStore.onboarding.start()
})
try {
-7
View File
@@ -140,10 +140,6 @@ export interface PreferencesHomeFeed {
name: 'preferences-home-feed'
}
export interface OnboardingModal {
name: 'onboarding'
}
export type Modal =
// Account
| AddAppPasswordModal
@@ -176,9 +172,6 @@ export type Modal =
| WaitlistModal
| InviteCodesModal
// Onboarding
| OnboardingModal
// Generic
| ConfirmModal