Skip to content

Commit

Permalink
fix(front): Hide steam button for placeholder and deleted profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
GordiNoki authored and tsa96 committed Aug 8, 2024
1 parent 82e4e07 commit 78248f3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/frontend/src/app/pages/profile/profile.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
@if (user.country && user.country.length === 2) {
<span [title]="countryDisplayName" class="rounded inline-block w-7 text-4 fi fi-{{ user.country.toLowerCase() }}"></span>
}
<a href="https://steamcommunity.com/profiles/{{ user.steamID }}" target="_blank" mTooltip="Steam Profile">
<m-icon class="h-7 w-7 text-gray-50 transition duration-100 ease-out hover:text-blue-500" icon="steam" pack="si" />
</a>
@if (!hasRole(Role.PLACEHOLDER) && !hasRole(Role.DELETED)) {
<a href="https://steamcommunity.com/profiles/{{ user.steamID }}" target="_blank" mTooltip="Steam Profile">
<m-icon class="h-7 w-7 text-gray-50 transition duration-100 ease-out hover:text-blue-500" icon="steam" pack="si" />
</a>
}
</h1>
<div class="flex gap-1">
@if (!isLocal && localUserService.user | async) {
Expand Down

0 comments on commit 78248f3

Please sign in to comment.