diff --git a/web/pages/embed/chat/readonly/index.tsx b/web/pages/embed/chat/readonly/index.tsx index bfd263d99..65600c294 100644 --- a/web/pages/embed/chat/readonly/index.tsx +++ b/web/pages/embed/chat/readonly/index.tsx @@ -10,21 +10,20 @@ import { export default function ReadOnlyChatEmbed() { const currentUser = useRecoilValue(currentUserAtom); const messages = useRecoilValue(visibleChatMessagesSelector); - if (!currentUser) { - return null; - } - const { id, displayName } = currentUser; + return (
- + {currentUser && ( + + )}
); } diff --git a/web/pages/embed/chat/readwrite/index.tsx b/web/pages/embed/chat/readwrite/index.tsx index 0a6d2a73e..1e0f85aee 100644 --- a/web/pages/embed/chat/readwrite/index.tsx +++ b/web/pages/embed/chat/readwrite/index.tsx @@ -26,25 +26,22 @@ export default function ReadWriteChatEmbed() { const { videoAvailable } = appState; const { streamTitle, online } = clientStatus; - if (!currentUser) { - return null; - } - const headerText = online ? streamTitle || name : name; - const { id, displayName, isModerator } = currentUser; return (
- + {currentUser && ( + + )}
); }