Skip to content

Commit

Permalink
site: fall back to username on /apps page
Browse files Browse the repository at this point in the history
  • Loading branch information
Conduitry committed Sep 10, 2019
1 parent 5d8ca9f commit 424ed9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/src/routes/apps/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
<h1>Your apps</h1>

<div class="user">
<img class="avatar" alt="{user.name} avatar" src="{user.avatar}">
<img class="avatar" alt="{user.name || user.username} avatar" src="{user.avatar}">
<span>
{user.name}
{user.name || user.username}
(<a on:click|preventDefault={logout} href="auth/logout">log out</a>)
</span>
</div>
Expand Down

0 comments on commit 424ed9e

Please sign in to comment.