|
@@ -17,8 +17,8 @@ export class ExternalPageHeaderComponent implements OnInit {
|
|
currentDate: any = Date.now();//ararbic date
|
|
currentDate: any = Date.now();//ararbic date
|
|
currentEnglishDate: any = Date.now(); //english date
|
|
currentEnglishDate: any = Date.now(); //english date
|
|
|
|
|
|
- dataLoginUser: any;
|
|
|
|
|
|
|
|
|
|
+ dataLoginUser:any;
|
|
|
|
|
|
ngOnInit() {
|
|
ngOnInit() {
|
|
|
|
|
|
@@ -29,8 +29,8 @@ export class ExternalPageHeaderComponent implements OnInit {
|
|
this.currentDate = this.authSer.writeHijri(new Date(this.currentDate), 'ar', 'header');
|
|
this.currentDate = this.authSer.writeHijri(new Date(this.currentDate), 'ar', 'header');
|
|
|
|
|
|
if(!this.authSer.isAuthenticated()) {
|
|
if(!this.authSer.isAuthenticated()) {
|
|
- console.log('user data ', this.authSer.returnUserData());
|
|
|
|
- this.dataLoginUser = JSON.parse(localStorage.getItem('userData'));
|
|
|
|
|
|
+ console.log('user data external header', this.authSer.returnUserData());
|
|
|
|
+ this.dataLoginUser = this.authSer.returnUserData();
|
|
}
|
|
}
|
|
|
|
|
|
console.log(this.dataLoginUser);
|
|
console.log(this.dataLoginUser);
|