Fix logout redirection

This commit is contained in:
Peter Maquiran
2021-08-16 13:46:32 +01:00
parent 1b47caa881
commit 82615751fd
3 changed files with 7 additions and 14 deletions
+4 -7
View File
@@ -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() {