Browse Source

Hide error message if local results are available.

pull/92/head
Abhishek 4 years ago
parent
commit
17ed2c9bc4
  1. 2
      Clocker/Preferences/General/PreferencesViewController.swift

2
Clocker/Preferences/General/PreferencesViewController.swift

@ -443,8 +443,8 @@ extension PreferencesViewController {
let searchResults = self.decode(from: data) let searchResults = self.decode(from: data)
if searchResults?.status == "ZERO_RESULTS" { if searchResults?.status == "ZERO_RESULTS" {
self.placeholderLabel.placeholderString = "No results! 😔 Try entering the exact name."
self.findLocalSearchResultsForTimezones() self.findLocalSearchResultsForTimezones()
self.placeholderLabel.placeholderString = self.searchResultsDataSource.timezoneFilteredArray.isEmpty ? "No results! 😔 Try entering the exact name." : CLEmptyString
self.reloadSearchResults() self.reloadSearchResults()
self.isActivityInProgress = false self.isActivityInProgress = false
return return

Loading…
Cancel
Save