From 2e23e9b43f57b205dd0fee802e0cd00fe4e505f3 Mon Sep 17 00:00:00 2001 From: dvelo <52332868+DeveloLongScript@users.noreply.github.com> Date: Fri, 16 Aug 2024 16:26:40 -0500 Subject: [PATCH] fix: author shouldn't appear if its `undefined` --- src/components/CommandBar.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/CommandBar.tsx b/src/components/CommandBar.tsx index 7f7bbe4..4ce65b7 100644 --- a/src/components/CommandBar.tsx +++ b/src/components/CommandBar.tsx @@ -376,9 +376,12 @@ export function ServerCommandBar() { {serverName} -

- by {(obj as OnlineServer).author} -

+ {(obj as OnlineServer).author != undefined && ( +

+ by {(obj as OnlineServer).author} +

+ )} +