From 3a9d63990cc6c1441b6a37ba78fb81783e2880fa Mon Sep 17 00:00:00 2001 From: Mobile Roshka Date: Tue, 19 May 2020 20:31:10 -0700 Subject: [PATCH] Se arregla un bug con el buscador --- ProductosPY/ViewControllers/ScreenTwoViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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!) -- libgit2 0.26.0