Commit 455398b6ee266e0d35d97add242f8e527b9bc358

Authored by Marcelo Puebla
1 parent 500dafd929
Exists in master

Codigo identado

src/app/components/busqueda-productos/busqueda-productos.component.ts
... ... @@ -51,12 +51,12 @@ export class BusquedaProductosComponent implements OnInit {
51 51 filterItems() {
52 52  
53 53 this.auxProductos = this.productos.filter(x => {
54   - if (this.categoriaActive === 0){
  54 + if (this.categoriaActive === 0) {
55 55 return x.DetArt.toLowerCase().includes(this.searchTerm.toLowerCase())
56 56 }
57   - else{
  57 + else {
58 58 return x.DetArt.toLowerCase().includes(this.searchTerm.toLowerCase()) &&
59   - x.categoria_selfservice === this.categoriaActive;
  59 + x.categoria_selfservice === this.categoriaActive;
60 60 }
61 61 });
62 62 }