diff --git a/frontend/src/components/manage/SettingsCard.svelte b/frontend/src/components/manage/SettingsCard.svelte index f6ff01b..1119b34 100644 --- a/frontend/src/components/manage/SettingsCard.svelte +++ b/frontend/src/components/manage/SettingsCard.svelte @@ -151,6 +151,11 @@ function showValidations(data) { let success = true; + if (data.error !== null) { + success = false; + notify("Warning", data.error); + } + if (!data.prefix) { success = false; notify("Warning", "Your prefix has not been saved.\nPrefixes must be between 1 - 8 characters in length.") @@ -214,6 +219,10 @@ if (data.overflow_category_id === null) { data.overflow_category_id = "-2"; } + + if (!channels.some((c) => c.id === data.overflow_category_id)) { + data.overflow_category_id = "-2"; + } } }