Skip to content

Commit

Permalink
Fix device name not being set in shared container
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatStella7922 committed Feb 9, 2024
1 parent 4794edd commit f682dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dcbattwebhook-swift/DeviceInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func getSystemReportedDeviceUserDisplayName() -> String {
*/
func getDeviceUserDisplayName() -> String {
var deviceName = getSystemReportedDeviceUserDisplayName()
if let usrDeviceName = UserDefaults.standard.string(forKey: "UsrDeviceName") {
if let usrDeviceName = defaults.string(forKey: "UsrDeviceName") {
if (usrDeviceName.trimmingCharacters(in: .whitespacesAndNewlines) != "") {
deviceName = usrDeviceName
}
Expand Down

0 comments on commit f682dc3

Please sign in to comment.