applied optional chaining to avoid errors.

aconnect-UX/1653
atif118-mfsys 6 days ago
parent db1e57a008
commit 9ccda5bc86

@ -46,7 +46,7 @@ passwordType2: string = 'password';
checkIfFirstTimeChangePasswordOrNot(){ checkIfFirstTimeChangePasswordOrNot(){
let currentUser: any = JSON.parse(this.storageService.getItem('user')!) let currentUser: any = JSON.parse(this.storageService.getItem('user')!)
if(currentUser.user.isFirstLogin){ if(currentUser?.user?.isFirstLogin){
this.isFirstLogin = true; this.isFirstLogin = true;
} }
else{ else{

Loading…
Cancel
Save