Commit 788185d75f32d33f1c9b943a6ba4a4d006c1cbcb

Authored by Marcelo Puebla
1 parent a4cb3a157e
Exists in master

Arreglo identacion.

src/app/components/busqueda-productos/busqueda-productos.component.ts
... ... @@ -39,11 +39,12 @@ export class BusquedaProductosComponent implements OnInit {
39 39 }
40 40  
41 41 filterItems() {
42   - console.log('');
43   - this.auxProductos = this.productos.filter(x => x.DetArt.toLowerCase().includes(this.searchTerm.toLowerCase()));
  42 + this.auxProductos = this.productos.filter(x => {
  43 + return x.DetArt.toLowerCase().includes(this.searchTerm.toLowerCase())
  44 + });
44 45 }
45 46  
46   - agregarAlCarrito(producto : Producto){
  47 + agregarAlCarrito(producto: Producto) {
47 48 producto.cantidad = 1;
48 49 this.productosParaCarrito.push(producto);
49 50 }