Skip to content

Commit

Permalink
fix(vpn): display country name for Singapore server selection (#27088)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuo-xu authored Dec 23, 2024
1 parent 5e6d269 commit a6d6fe3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ios/brave-ios/Sources/BraveVPN/BraveVPN.swift
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ public class BraveVPN {
return (
city.trimmingCharacters(in: .whitespaces), country.trimmingCharacters(in: .whitespaces)
)
} else if locationComponents.count == 1 {
// e.g. Singapore
let country = locationComponents[safe: 0] ?? ""
return (
nil, country.trimmingCharacters(in: .whitespaces)
)
} else {
return (nil, nil)
}
Expand Down

0 comments on commit a6d6fe3

Please sign in to comment.