File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
FirebaseRemoteConfig/Swift/PropertyWrapper Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class RemoteConfigValueObservable<T: Decodable>: ObservableObject {
45
45
do {
46
46
let configValue : RemoteConfigValue = remoteConfig [ key]
47
47
if configValue. source == . remote || configValue. source == . default {
48
- self . configValue = try remoteConfig [ key ] . decoded ( )
48
+ self . configValue = try configValue . decoded ( )
49
49
} else {
50
50
self . configValue = fallbackValue
51
51
}
@@ -66,7 +66,7 @@ class RemoteConfigValueObservable<T: Decodable>: ObservableObject {
66
66
do {
67
67
let configValue : RemoteConfigValue = remoteConfig [ key]
68
68
if configValue. source == . remote {
69
- self . configValue = try remoteConfig [ key ] . decoded ( )
69
+ self . configValue = try configValue . decoded ( )
70
70
}
71
71
} catch {
72
72
// Suppresses a hard failure if decoding failed.
You can’t perform that action at this time.
0 commit comments