fix: author shouldn't appear if its undefined

This commit is contained in:
dvelo 2024-08-16 16:26:40 -05:00
parent 9abe713134
commit 2e23e9b43f

@ -376,9 +376,12 @@ export function ServerCommandBar() {
<IconDisplay server={obj} />
{serverName}
</h1>
<h1 className="text-muted-foreground">
by {(obj as OnlineServer).author}
</h1>
{(obj as OnlineServer).author != undefined && (
<h1 className="text-muted-foreground">
by {(obj as OnlineServer).author}
</h1>
)}
<h2 className="flex items-center text-muted-foreground pt-[15px] pl-1.5">
<span className="relative flex h-[10px] w-[10px]">
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-black dark:bg-[#0cce6b] opacity-75" />