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(); }