Improve local storage

This commit is contained in:
Peter Maquiran
2021-07-18 21:05:46 +01:00
parent f28e4a1d04
commit d79d5fe858
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -38,7 +38,9 @@ export class LoginPage implements OnInit {
}
ngOnInit() {
// clear local storage
window.localStorage.clear();
// App has session
if(!this.localstoreService.get('UserData', false)) {
this.hasSession = false