From be0d00de17b1e0b65044fcbb456ec91492b89a68 Mon Sep 17 00:00:00 2001 From: RetroSunstar <57507616+RetroSunstar@users.noreply.github.com> Date: Tue, 17 Mar 2026 17:04:27 +0000 Subject: [PATCH] Set displayName and description to undefined if no values are provided during a profile edit (#10016) --- src/state/queries/profile.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/state/queries/profile.ts b/src/state/queries/profile.ts index a42807405a..b792fecb46 100644 --- a/src/state/queries/profile.ts +++ b/src/state/queries/profile.ts @@ -176,8 +176,8 @@ export function useProfileUpdateMutation() { if (typeof updates === 'function') { next = updates(next) } else { - next.displayName = updates.displayName - next.description = updates.description + next.displayName = updates.displayName || undefined + next.description = updates.description || undefined if ('pinnedPost' in updates) { next.pinnedPost = updates.pinnedPost }