This commit is contained in:
Peter Maquiran
2021-06-01 10:42:14 +01:00
parent 28483d4aff
commit 0f228da515
5 changed files with 23 additions and 7 deletions
@@ -110,5 +110,15 @@ export class ProfileComponent implements OnInit {
this.router.navigate(['/']);
}
LoginPreference(type: string) {
let userData = JSON.parse(localStorage.getItem('UserData'))
userData.loginPreference = type
localStorage.setItem('UserData', JSON.stringify(userData) )
}
}