Skip to content

Commit

Permalink
Change attribute to optional on remote config
Browse files Browse the repository at this point in the history
  • Loading branch information
levieggertcru committed Jan 16, 2025
1 parent 4ec00c9 commit 243a1b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ import Foundation

struct RemoteConfigDataModel {

let globalActivityIsEnabled: Bool
let globalActivityIsEnabled: Bool?
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ class FirebaseRemoteConfigWrapper: RemoteConfigRemoteDatabaseInterface {

let globalActivityIsEnabledValue: RemoteConfigValue? = remoteConfig.configValue(forKey: "ui_account_globalactivity_enabled")

guard let globalActivityIsEnabled = globalActivityIsEnabledValue?.boolValue else {
return nil
}

return RemoteConfigDataModel(globalActivityIsEnabled: globalActivityIsEnabled)
return RemoteConfigDataModel(
globalActivityIsEnabled: globalActivityIsEnabledValue?.boolValue
)
}
}

Expand Down

0 comments on commit 243a1b0

Please sign in to comment.