diff --git a/ProductosPY/ViewControllers/ScreenTwoViewController.swift b/ProductosPY/ViewControllers/ScreenTwoViewController.swift index 0586e68..a4c0533 100644 --- a/ProductosPY/ViewControllers/ScreenTwoViewController.swift +++ b/ProductosPY/ViewControllers/ScreenTwoViewController.swift @@ -268,7 +268,8 @@ extension ScreenTwoViewController: UISearchBarDelegate { searchBar.endEditing(true) searchBarView.endEditing(true) tableView.isHidden = true - if (textButton?.uppercased().contains("todos"))! { + + if textButton! == "Todos los productos" { addFeatureCollectionInTheMap() } else { addFeatureCollectionFilterInTheMap(tipo: tipoProducto, nombre: textButton!)