Commit 4142232fc24152814ffe8cbac85868d929b4432b
1 parent
994ed32ee7
Exists in
develop
Fix
Limpiar carrito
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
src/app/services/articulo/articulo.service.ts
src/app/shared/cancelar-compra/cancelar-compra.component.ts
... | ... | @@ -32,8 +32,7 @@ export class CancelarCompraComponent implements OnInit, OnDestroy { |
32 | 32 | } |
33 | 33 | |
34 | 34 | limpiarCarritoYvolver() { |
35 | - this.articuloService.carrito = []; | |
36 | - this.articuloService.calcularTotal(); | |
35 | + this.articuloService.cleanShoppingCar(); | |
37 | 36 | this.router.navigate(['/']); |
38 | 37 | } |
39 | 38 | } |