Commit a052e0f38ac587dd433b992d992a72cd9fd8e947

Authored by Marcelo Puebla
1 parent a00709688b
Exists in develop

Fix

Al setear articulos al carrito
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/app/services/articulo/articulo.service.ts
... ... @@ -57,7 +57,7 @@ export class ArticuloService {
57 57 setArticulo(articulo: IArticulo) {
58 58 articulo.cantidad = 1;
59 59 for (const articuloCarrito of this.carrito) {
60   - if (articuloCarrito.id === articulo.id && !articulo.productos.length) {
  60 + if (articuloCarrito.id === articulo.id && !articulo.productos) {
61 61 articuloCarrito.cantidad++;
62 62 this.calcularTotal();
63 63 return;