Skip to content

Commit

Permalink
Mark onboarding completed when noBrowsersCtas is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nalcalag committed Jul 23, 2024
1 parent 226dd4c commit 41899a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/main/java/com/duckduckgo/app/cta/ui/CtaViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ class CtaViewModel @Inject constructor(
private suspend fun getHomeCta(): Cta? {
return when {
canShowDaxIntroCta() && extendedOnboardingFeatureToggles.noBrowserCtas().isEnabled() -> {
dismissedCtaDao.insert(DismissedCta(CtaId.DAX_INTRO))
dismissedCtaDao.insert(DismissedCta(CtaId.DAX_END))
settingsDataStore.hideTips = true
userStageStore.stageCompleted(AppStage.DAX_ONBOARDING)
null
}
canShowDaxIntroCta() && !extendedOnboardingFeatureToggles.noBrowserCtas().isEnabled() -> {
Expand Down Expand Up @@ -223,7 +223,6 @@ class CtaViewModel @Inject constructor(
!daxOnboardingActive() || hideTips() -> false
extendedOnboardingFeatureToggles.noBrowserCtas().isEnabled() -> {
settingsDataStore.hideTips = true
dismissedCtaDao.insert(DismissedCta(CtaId.DAX_END))
userStageStore.stageCompleted(AppStage.DAX_ONBOARDING)
false
}
Expand Down

0 comments on commit 41899a6

Please sign in to comment.