From da5363f5787f45a50bc978a61b908a371e5b091b Mon Sep 17 00:00:00 2001 From: DarrenZal Date: Mon, 15 Jan 2024 13:58:10 -0800 Subject: [PATCH] direct user to create a username if they don't have one before chatting --- src/components/chat/chat.svelte | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/components/chat/chat.svelte b/src/components/chat/chat.svelte index 2b1647f..de97a1a 100644 --- a/src/components/chat/chat.svelte +++ b/src/components/chat/chat.svelte @@ -114,6 +114,7 @@ async function sendFeedback() { } +{#if username}
{#each $messages as message} @@ -142,6 +143,12 @@ async function sendFeedback() {
+{:else} + +
+

Please connect to create a username before chatting.

+
+{/if}