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) }; //--------------------------------------------------------------------------------/