From 4579d9074eaeb41e4f3ebb8f6a03ece786367e0d Mon Sep 17 00:00:00 2001 From: Manish Giri Date: Fri, 19 Jul 2024 14:41:22 -0500 Subject: [PATCH] Initial change for Social Media validation (#3819) Co-authored-by: Gabe Kangas --- web/components/admin/config/general/EditSocialLinks.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/components/admin/config/general/EditSocialLinks.tsx b/web/components/admin/config/general/EditSocialLinks.tsx index b1c392ef8..d7ee0a49e 100644 --- a/web/components/admin/config/general/EditSocialLinks.tsx +++ b/web/components/admin/config/general/EditSocialLinks.tsx @@ -290,6 +290,9 @@ export default function EditSocialLinks() { ]; const isValid = (url: string, platform: string) => { + if (platform === '') { + return false; + } if (platform === 'xmpp') { return isValidAccount(url, 'xmpp'); }