Commit 16a24c085b6e162b41e6a859d905df657b4f7a3b

Authored by Marcelo Puebla
1 parent 282e37b43f
Exists in develop

Arreglo al agregar articulos iguales

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/app/services/articulo/articulo.service.ts
... ... @@ -44,8 +44,8 @@ export class ArticuloService {
44 44 setArticulo(articulo: IArticulo) {
45 45 for (const articuloCarrito of this.carrito) {
46 46 if (articuloCarrito.id === articulo.id) {
47   - if (articulo.PRO) break;
48 47 articuloCarrito.cantidad++;
  48 + this.calcularTotal();
49 49 return;
50 50 }
51 51 }