From 4078f8255e2dc9ba52bcf023a8afa97f16fa96e0 Mon Sep 17 00:00:00 2001 From: Marcelo Puebla Date: Fri, 31 Jan 2020 15:17:31 -0300 Subject: [PATCH] Fix Al mostrar componente de cancelar compra en pago-electronico y pago-tarjeta --- src/app/services/inactive-screen/inactive-screen.service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/services/inactive-screen/inactive-screen.service.ts b/src/app/services/inactive-screen/inactive-screen.service.ts index d9e8a6f..f95e838 100644 --- a/src/app/services/inactive-screen/inactive-screen.service.ts +++ b/src/app/services/inactive-screen/inactive-screen.service.ts @@ -13,7 +13,11 @@ export class InactiveScreenService { startTimeOutInactividad() { this.timerReposo = setTimeout(() => { - this.router.navigate(['cancelar-compra']); + if (this.router.url === '/pago-electronico' || this.router.url === '/pago-tarjeta') { + this.startTimeOutInactividad(); + } else { + this.router.navigate(['cancelar-compra']); + } }, 90000); } } -- 1.9.1