diff --git a/src/app/components/busqueda-productos/busqueda-productos.component.ts b/src/app/components/busqueda-productos/busqueda-productos.component.ts index b8962b5..5761b1d 100644 --- a/src/app/components/busqueda-productos/busqueda-productos.component.ts +++ b/src/app/components/busqueda-productos/busqueda-productos.component.ts @@ -72,10 +72,10 @@ export class BusquedaProductosComponent implements OnInit { this.auxProductos = this.productos.filter(x => { if (this.categoriaActive === 0) { - return x.DetArt.toLowerCase().includes(this.searchTerm.toLowerCase()) + return x.DET_LAR.toLowerCase().includes(this.searchTerm.toLowerCase()) } else { - return x.DetArt.toLowerCase().includes(this.searchTerm.toLowerCase()) && + return x.DET_LAR.toLowerCase().includes(this.searchTerm.toLowerCase()) && x.categoria_selfservice === this.categoriaActive; } });