track onboarding steps

zio/stable
Ansh Nanda 2023-08-28 17:51:26 -07:00
parent b38629b9b5
commit a231fdf64e
1 changed files with 2 additions and 0 deletions

View File

@ -49,12 +49,14 @@ export class OnboardingModel {
nextScreenName(currentScreenName?: OnboardingStep) {
if (currentScreenName === 'Welcome' || this.step === 'Welcome') {
track('Onboarding:Begin')
this.step = 'RecommendedFeeds'
return this.step
} else if (
this.step === 'RecommendedFeeds' ||
currentScreenName === 'RecommendedFeeds'
) {
track('Onboarding:Complete')
this.step = 'Home'
return this.step
} else {