diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/DevHive.Angular/src/app/components/profile/profile.component.html | 4 | ||||
| -rw-r--r-- | src/DevHive.Angular/src/app/components/profile/profile.component.ts | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/DevHive.Angular/src/app/components/profile/profile.component.html b/src/DevHive.Angular/src/app/components/profile/profile.component.html index ac0c07e..9cb4dd2 100644 --- a/src/DevHive.Angular/src/app/components/profile/profile.component.html +++ b/src/DevHive.Angular/src/app/components/profile/profile.component.html @@ -26,7 +26,7 @@ {{ lang.name }} </div> </div> - <div *ngIf="showNoLangMsg"> + <div *ngIf="user.languages.length === 0"> None </div> </div> @@ -37,7 +37,7 @@ {{ tech.name }} </div> </div> - <div *ngIf="showNoTechMsg"> + <div *ngIf="user.technologies.length === 0"> None </div> </div> diff --git a/src/DevHive.Angular/src/app/components/profile/profile.component.ts b/src/DevHive.Angular/src/app/components/profile/profile.component.ts index 7717505..620c931 100644 --- a/src/DevHive.Angular/src/app/components/profile/profile.component.ts +++ b/src/DevHive.Angular/src/app/components/profile/profile.component.ts @@ -21,8 +21,6 @@ export class ProfileComponent implements OnInit { public dataArrived = false; public user: User; public userPosts: Post[] = []; - public showNoLangMsg = false; - public showNoTechMsg = false; constructor(private _router: Router, private _userService: UserService, private _languageService: LanguageService, private _technologyService: TechnologyService, private _feedService: FeedService, private _location: Location) { } @@ -53,7 +51,6 @@ export class ProfileComponent implements OnInit { }); } else { - this.showNoLangMsg = true; this.loadTechnologies(); } } @@ -68,7 +65,6 @@ export class ProfileComponent implements OnInit { }); } else { - this.showNoTechMsg = true; this.loadPosts(); } } |
