From 72ecc038ef3bfb6b684476ba0b5593ca3ba6c8ea Mon Sep 17 00:00:00 2001 From: Eric Fernandez Date: Thu, 12 Sep 2019 10:47:26 -0300 Subject: [PATCH] unsubscribe on destroy --- .../components/confirmacion-carrito/confirmacion-carrito.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/components/confirmacion-carrito/confirmacion-carrito.component.ts b/src/app/components/confirmacion-carrito/confirmacion-carrito.component.ts index e5041d6..d323526 100644 --- a/src/app/components/confirmacion-carrito/confirmacion-carrito.component.ts +++ b/src/app/components/confirmacion-carrito/confirmacion-carrito.component.ts @@ -39,6 +39,7 @@ export class ConfirmacionCarritoComponent implements OnInit, OnDestroy { ngOnDestroy() { + this.subscribePago.unsubscribe(); clearTimeout(this.timerReposo); } -- 1.9.1