From 7c1dd88367dbb01d54d2db91652dc95d8f9d1bef Mon Sep 17 00:00:00 2001 From: mpuebla Date: Wed, 21 Aug 2019 11:49:30 -0300 Subject: [PATCH] Seteado undefined producto a cargar al agregarlo al carrito. --- src/app/components/inicio/inicio.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/components/inicio/inicio.component.ts b/src/app/components/inicio/inicio.component.ts index 1a5dad3..55fba04 100644 --- a/src/app/components/inicio/inicio.component.ts +++ b/src/app/components/inicio/inicio.component.ts @@ -98,8 +98,7 @@ export class InicioComponent implements OnInit { confirmarProducto() { this.promoAcargar.cantidad = 1; this.productoService.productos.push(this.promoAcargar); - this.promoAcargar = undefined; - this.productoAcargar = undefined; + this.productoService.productoAcargar = this.promoAcargar = this.productoAcargar = undefined; this.promociones = []; this.popoverDirective.hide(); } -- 1.9.1