fix(frontend): use display name for members if possible

This commit is contained in:
Sam 2023-03-14 17:16:11 +01:00
parent b50bed296a
commit bfc9e6f5c0
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
2 changed files with 10 additions and 5 deletions

View file

@ -25,7 +25,8 @@
<div class="container">
{#if $userStore && $userStore.id === data.user.id}
<Alert color="secondary" fade={false}>
You are currently viewing the <strong>public</strong> profile of {data.name}.
You are currently viewing the <strong>public</strong> profile of {data.display_name ??
data.name}.
<br /><a href="/edit/member/{data.id}">Edit profile</a>
</Alert>
{/if}