Skip to content

Commit

Permalink
show day 14 only when day 0 was not shown
Browse files Browse the repository at this point in the history
  • Loading branch information
SabrinaTardio committed Mar 11, 2024
1 parent f3c0d84 commit ffeecdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DuckDuckGo/HomePage/Model/HomePageContinueSetUpModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ extension HomePage.Models {
case .surveyDay0:
if shouldSurveyDay0BeVisible {
features.append(feature)
userInteractedWithSurveyDay0 = true
}
case .surveyDay14:
if shouldSurveyDay14BeVisible {
Expand Down Expand Up @@ -364,7 +365,6 @@ extension HomePage.Models {
let oneDayAgo = Calendar.current.date(byAdding: .weekday, value: -1, to: Date())!
return !isDay0SurveyEnabled &&
shouldShowSurveyDay0 &&
!userInteractedWithSurveyDay0 &&
firstLaunchDate >= oneDayAgo &&
Bundle.main.preferredLocalizations.first == "en" &&
isPartOfSurveyDay0On10Percent ?? calculateIfIn10percent(day: .day0)
Expand Down Expand Up @@ -414,7 +414,7 @@ extension HomePage.Models {
tabCollectionViewModel.append(tab: tab)
switch day {
case .day0:
userInteractedWithSurveyDay0 = true
shouldShowSurveyDay0 = false
case .day14:
shouldShowSurveyDay14 = false
}
Expand Down

0 comments on commit ffeecdc

Please sign in to comment.