Skip to content

Commit

Permalink
Update DeviceHelper.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuftor committed Jan 24, 2024
1 parent 6943b44 commit 785ca26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SuperwallKit/Network/Device Helper/DeviceHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ class DeviceHelper {

var languageCode: String {
if #available(iOS 16, *) {
Locale.autoupdatingCurrent.language.languageCode?.identifier ?? ""
return Locale.autoupdatingCurrent.language.languageCode?.identifier ?? ""
} else {
Locale.autoupdatingCurrent.languageCode ?? ""
return Locale.autoupdatingCurrent.languageCode ?? ""
}
}

Expand Down

0 comments on commit 785ca26

Please sign in to comment.