From 49307ed85b47efd8cf365201bc98ad22132618e0 Mon Sep 17 00:00:00 2001 From: tanushkat96 Date: Fri, 29 May 2026 18:01:20 +0530 Subject: [PATCH] Fix whitespace-only biographies from being saved --- src/components/profile/UserProfile.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/profile/UserProfile.tsx b/src/components/profile/UserProfile.tsx index 5f8aa97..5ed46bc 100644 --- a/src/components/profile/UserProfile.tsx +++ b/src/components/profile/UserProfile.tsx @@ -229,9 +229,9 @@ useEffect(() => { setIsSaving(true); try { const safeSocialLinks = sanitizeSocialLinks(socialLinks); - + const trimmedAbout = aboutContent.trim(); await updateUserProfile({ - aboutMarkdown: aboutContent, + aboutMarkdown: trimmedAbout, ...safeSocialLinks }); setSocialLinks(safeSocialLinks);