Explorar o código

fix missing profile banner bug

Carsten Porth %!s(int64=5) %!d(string=hai) anos
pai
achega
8660d4537e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/src/components/profile-header/profile-header.html

+ 1 - 1
app/src/components/profile-header/profile-header.html

@@ -1,6 +1,6 @@
 <!-- Generated template for the ProfileHeaderComponent component -->
 <div>
-  <img src="{{ user.profile_banner_url }}" alt="{{ user.name }} - Banner" class="profile-banner">
+  <img src="{{ user.profile_banner_url }}" alt="{{ user.name }} - Banner" class="profile-banner" *ngIf="user.profile_banner_url">
   <img src="{{ user.profile_image_url_https }}" alt="{{ user.name }}" class="profile-picture">
   <div padding>
     <p class="profile-stats">{{ user.followers_count | friendlyNumber }} Followers | {{ user.friends_count | friendlyNumber }} Following</p>