Skip to content

Commit

Permalink
Fix error when configuring multiple cold-launch conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerzer committed Oct 18, 2021
1 parent 68d5644 commit f3721db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/OnboardingKit/OnboardingCondition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public enum OnboardingConditions {

static func register() {
guard !self.registered else {
fatalError("Error: Cold-launch onboarding condition must be registered exactly once")
return
}
let coldLaunchCount = UserDefaults.standard.integer(forKey: self.defaultsKey)
UserDefaults.standard.set(coldLaunchCount + 1, forKey: self.defaultsKey)
Expand Down

0 comments on commit f3721db

Please sign in to comment.