feat: use display name if it exists

This commit is contained in:
Timothy J. Baek 2023-12-05 16:39:26 -08:00
parent 9de56550ab
commit b1081c2c81

View file

@ -325,7 +325,11 @@
</div>
{#if selectedModelfile.user}
<div class="mt-0.5 text-sm font-normal text-gray-500 dark:text-gray-500">
By <a href="https://ollamahub.com/">@{selectedModelfile.user.username}</a>
By <a href="https://ollamahub.com/"
>{selectedModelfile.user.name
? selectedModelfile.user.name
: `@${selectedModelfile.user.username}`}</a
>
</div>
{/if}
{:else}