diff --git a/src/app/modals/profile/profile.page.ts b/src/app/modals/profile/profile.page.ts index 853c561c7..77d1a189d 100644 --- a/src/app/modals/profile/profile.page.ts +++ b/src/app/modals/profile/profile.page.ts @@ -131,15 +131,12 @@ export class ProfilePage implements OnInit { } logout() { - //const loader = this.toastService.loading(); - // clear local storage window.localStorage.clear(); - setTimeout(() => { - window.location.pathname = '/' - location.reload(); - }, 1000) - + setTimeout(()=> { + this.router.navigateByUrl('/', { replaceUrl: true }); + },100) + } checkState() { diff --git a/src/app/shared/gabinete-digital/pedidos/pedidos.page.html b/src/app/shared/gabinete-digital/pedidos/pedidos.page.html index fb84a98d3..2ccd800bd 100644 --- a/src/app/shared/gabinete-digital/pedidos/pedidos.page.html +++ b/src/app/shared/gabinete-digital/pedidos/pedidos.page.html @@ -61,9 +61,6 @@ {{task.activityInstanceName}}