From 5c3d0ed5a9f193e2b28e0f47985ae7c17fb81c75 Mon Sep 17 00:00:00 2001 From: Kieran Date: Wed, 21 Jun 2023 16:47:16 +0100 Subject: [PATCH] warnings --- src/element/live-chat.tsx | 1 + src/element/profile.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/element/live-chat.tsx b/src/element/live-chat.tsx index 6b01642..070649e 100644 --- a/src/element/live-chat.tsx +++ b/src/element/live-chat.tsx @@ -79,6 +79,7 @@ export function LiveChat({ link, options }: { link: NostrLink, options?: LiveCha return } } + return null; })} {messages.data === undefined && } diff --git a/src/element/profile.tsx b/src/element/profile.tsx index f97d9ff..dce4296 100644 --- a/src/element/profile.tsx +++ b/src/element/profile.tsx @@ -18,7 +18,7 @@ export function Profile({ pubkey, options }: { pubkey: string, options?: Profile const profile = useUserProfile(System, pubkey); return
- + Profile {(options?.showName ?? true) && getName(pubkey, profile)}
} \ No newline at end of file