Skip to content

Commit

Permalink
return optional feature flag value so default works (#225)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike <[email protected]>
  • Loading branch information
mike-dydx and mike-dydx committed Aug 21, 2024
1 parent 718edbf commit f3b17ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public class CompositeFeatureFlagsProvider: NSObject & FeatureFlagsProtocol {
public func isOn(feature: String) -> Bool? {
switch Installation.source {
case .appStore, .jailBroken:
return remote?.isOn(feature: feature) == true
return remote?.isOn(feature: feature)
case .debug, .testFlight:
return local?.isOn(feature: feature) ?? remote?.isOn(feature: feature) ?? false
return local?.isOn(feature: feature) ?? remote?.isOn(feature: feature)
}
}

Expand Down

0 comments on commit f3b17ea

Please sign in to comment.