Skip to content

Commit

Permalink
Uplift of #26610 (squashed) to beta
Browse files Browse the repository at this point in the history
  • Loading branch information
brave-builds committed Nov 18, 2024
1 parent 6613541 commit 541d372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/brave-ios/Sources/Preferences/Preferences.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ extension Preferences.Option where ValueType: ExpressibleByNilLiteral {
defaultValue: ValueType,
container: UserDefaults
) where V: UserDefaultsEncodable, ValueType == V? {
let initialValue = (container.value(forKey: key) as? ValueType) ?? defaultValue
let initialValue = (container.value(forKey: key) as? V) ?? defaultValue
self.init(
key: key,
initialValue: initialValue,
Expand Down

0 comments on commit 541d372

Please sign in to comment.