diff --git a/src/app/components/inicio/inicio.component.ts b/src/app/components/inicio/inicio.component.ts index cc79f74..e2df986 100644 --- a/src/app/components/inicio/inicio.component.ts +++ b/src/app/components/inicio/inicio.component.ts @@ -93,7 +93,7 @@ export class InicioComponent implements OnInit, AfterViewInit { confirmarProducto() { var producto = this.promoAcargar ? this.promoAcargar : this.productoAcargar; - producto.cantidad = 1; + producto.cantidad = producto.cantidad ? producto.cantidad : 1; this.productoService.setProductos(producto); this.productoService.productoAcargar = this.promoAcargar = this.productoAcargar = undefined; this.productoService.esPromoPersonalizada = false;