Skip to content

Commit

Permalink
mover permanent survey card to first position
Browse files Browse the repository at this point in the history
  • Loading branch information
SabrinaTardio committed May 22, 2024
1 parent d4fe524 commit 690a237
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions DuckDuckGo/HomePage/Model/HomePageContinueSetUpModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,10 @@ extension HomePage.Models {
}

var randomisedFeatures: [FeatureType] {
var features = FeatureType.allCases
features.shuffle()
for (index, feature) in features.enumerated() where feature == .defaultBrowser {
features.remove(at: index)
features.insert(feature, at: 0)
}
var features: [FeatureType] = [.permanentSurvey, .defaultBrowser]
var shuffledFeatures = FeatureType.allCases.filter { $0 != .defaultBrowser && $0 != .permanentSurvey }
shuffledFeatures.shuffle()
features.append(contentsOf: shuffledFeatures)
return features
}

Expand Down

0 comments on commit 690a237

Please sign in to comment.