From 4e40f1517c4b456f165866fadf3cae54114d25be Mon Sep 17 00:00:00 2001 From: Pheuw1 Date: Sat, 18 Mar 2023 21:57:38 +0100 Subject: [PATCH] channel name required --- front/volume/src/components/Channels.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/volume/src/components/Channels.svelte b/front/volume/src/components/Channels.svelte index 0b55387..9a36ce0 100644 --- a/front/volume/src/components/Channels.svelte +++ b/front/volume/src/components/Channels.svelte @@ -120,7 +120,7 @@ let password = ""; await show_popup("Enter a name for the new channel:") name = $content; - + if (name.includes("#")) { await show_popup("Channel name cannot contain #", false) return; @@ -156,7 +156,7 @@ if (!response.ok) await show_popup("Error creating channel", false) getChannels() - } + } else await show_popup("Channel name is required", false) }; //--------------------------------------------------------------------------------/