From 5a80b55c4cd0a986ae52684febad3bfa46dcf5c8 Mon Sep 17 00:00:00 2001 From: mpuebla Date: Fri, 6 Sep 2019 15:05:19 -0300 Subject: [PATCH] Arreglo en cantidad al confirmar producto. --- src/app/components/inicio/inicio.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.9.1