Commit 5a80b55c4cd0a986ae52684febad3bfa46dcf5c8

Authored by Marcelo Puebla
1 parent 102a882378
Exists in master

Arreglo en cantidad al confirmar producto.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/app/components/inicio/inicio.component.ts
... ... @@ -93,7 +93,7 @@ export class InicioComponent implements OnInit, AfterViewInit {
93 93 confirmarProducto() {
94 94  
95 95 var producto = this.promoAcargar ? this.promoAcargar : this.productoAcargar;
96   - producto.cantidad = 1;
  96 + producto.cantidad = producto.cantidad ? producto.cantidad : 1;
97 97 this.productoService.setProductos(producto);
98 98 this.productoService.productoAcargar = this.promoAcargar = this.productoAcargar = undefined;
99 99 this.productoService.esPromoPersonalizada = false;