Skip to content

Commit

Permalink
Fix country picker by id (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
4taras4 authored Jan 23, 2023
1 parent 80acec2 commit eddc377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PhoneNumberKit/PartialFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public final class PartialFormatter {
func updateMetadataForDefaultRegion() {
guard let metadataManager = metadataManager else { return }
if let regionMetadata = metadataManager.filterTerritories(byCountry: defaultRegion) {
self.defaultMetadata = metadataManager.mainTerritory(forCode: regionMetadata.countryCode)
self.defaultMetadata = regionMetadata
} else {
self.defaultMetadata = nil
}
Expand Down

0 comments on commit eddc377

Please sign in to comment.