Skip to content

Commit

Permalink
Change let directive to ngIf
Browse files Browse the repository at this point in the history
  • Loading branch information
Angi-Kinas committed Jul 22, 2024
1 parent 6fa87e7 commit 0f496e5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</div>
</div>

<ng-container *ngrxLet="platformService.getMe() as user">
<ng-container *ngIf="platformService.getMe() | async as user">
<div
*ngIf="user && user.name"
class="basis-1/12 mb-2 flex flex-col justify-center items-center"
Expand All @@ -23,7 +23,6 @@
class="w-10 h-10 flex justify-center items-center hover:cursor-pointer"
>
<gn-ui-user-preview
*ngIf="user && user.name"
[user]="user"
[avatarPlaceholder]="placeholder$ | async"
extraClass="w-10 h-10"
Expand Down

0 comments on commit 0f496e5

Please sign in to comment.