Commit 7c1dd88367dbb01d54d2db91652dc95d8f9d1bef
1 parent
cbf8871710
Exists in
master
and in
1 other branch
Seteado undefined producto a cargar al agregarlo al carrito.
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
src/app/components/inicio/inicio.component.ts
... | ... | @@ -98,8 +98,7 @@ export class InicioComponent implements OnInit { |
98 | 98 | confirmarProducto() { |
99 | 99 | this.promoAcargar.cantidad = 1; |
100 | 100 | this.productoService.productos.push(this.promoAcargar); |
101 | - this.promoAcargar = undefined; | |
102 | - this.productoAcargar = undefined; | |
101 | + this.productoService.productoAcargar = this.promoAcargar = this.productoAcargar = undefined; | |
103 | 102 | this.promociones = []; |
104 | 103 | this.popoverDirective.hide(); |
105 | 104 | } |