Skip to content

Commit 94f473b

Browse files
DehfwAnthonyNahas
authored andcommitted
fix(package): show displaYNameInitials only if user photoURL is not available
1 parent c09d258 commit 94f473b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/module/components/ngx-auth-firebaseui-avatar/ngx-auth-firebaseui-avatar.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
[style.background-image]="'url(' + user?.photoURL + ')'"
66
style="background-size: cover"
77
[matTooltip]="user?.displayName">
8-
{{displayNameInitials}}
8+
<span *ngIf="user?.photoURL">{{displayNameInitials}}</span>
99
</button>
1010

1111
<mat-menu xPosition="before" #posXMenu="matMenu" class="before">
1212
<div fxLayout="row" fxLayout.xs="column" style="padding-left: 10px; padding-right: 10px">
1313
<button mat-fab
1414
[style.background-image]="'url(' + user?.photoURL + ')'"
1515
style="background-size: cover">
16-
{{displayNameInitials}}
16+
<span *ngIf="user?.photoURL">{{{displayNameInitials}}</span>
1717
</button>
1818
<div fxLayout="column" style="padding-left: 10px; padding-right: 10px">
1919
<strong mat-card-title>{{user?.displayName}}</strong>

0 commit comments

Comments
 (0)