Skip to content

Commit

Permalink
Fix logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
kizitonwose committed Aug 2, 2020
1 parent d1d0649 commit 69fdc40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CountryPickerView/CountryPickerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public class CountryPickerView: NibView {
}()

internal var usableCountries: [Country] {
let excluded = dataSource?.excludedCountriesInList(in: self) ?? []
let excluded = dataSource?.excludedCountries(in: self) ?? []
return countries.filter { return !excluded.contains($0) }
}
}
Expand Down
2 changes: 1 addition & 1 deletion CountryPickerView/CountryPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,6 @@ class CountryPickerViewDataSourceInternal: CountryPickerViewDataSource {
}

var excludedCountries: [Country] {
return view.dataSource?.excludedCountriesInList(in: view) ?? preferredCountries(in: view)
return view.dataSource?.excludedCountries(in: view) ?? excludedCountries(in: view)
}
}

0 comments on commit 69fdc40

Please sign in to comment.