From c44a00eefeee04dd2c2ca5508e064efa0f59ecc9 Mon Sep 17 00:00:00 2001 From: Marcelo Puebla Date: Fri, 31 Jan 2020 14:28:22 -0300 Subject: [PATCH] Fix Calcular total al limpiar carrito --- src/app/shared/cancelar-compra/cancelar-compra.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/shared/cancelar-compra/cancelar-compra.component.ts b/src/app/shared/cancelar-compra/cancelar-compra.component.ts index ebb2782..52d4a6c 100644 --- a/src/app/shared/cancelar-compra/cancelar-compra.component.ts +++ b/src/app/shared/cancelar-compra/cancelar-compra.component.ts @@ -33,6 +33,7 @@ export class CancelarCompraComponent implements OnInit, OnDestroy { limpiarCarritoYvolver() { this.articuloService.carrito = []; + this.articuloService.calcularTotal(); this.router.navigate(['/']); } } -- 1.9.1