|
|
|
|
@ -26,11 +26,10 @@ export class BusinessCardComponent implements OnInit {
|
|
|
|
|
ngOnInit() {
|
|
|
|
|
this.userInfo = JSON.parse(localStorage.getItem('bussiness-card-info'));
|
|
|
|
|
this.direction = TranslatorService.getCurrentLanguageName();
|
|
|
|
|
console.log(this.userInfo);
|
|
|
|
|
|
|
|
|
|
this.authService
|
|
|
|
|
.loadAuthenticatedUser()
|
|
|
|
|
.subscribe((user: AuthenticatedUser) => {
|
|
|
|
|
console.log(user);
|
|
|
|
|
if (user) {
|
|
|
|
|
let jobTitle = user.POSITION_NAME.split('.');
|
|
|
|
|
if (jobTitle && jobTitle.length > 1) {
|
|
|
|
|
|