Set displayName and description to undefined if no values are provided during a profile edit (#10016)

This commit is contained in:
RetroSunstar
2026-03-17 17:04:27 +00:00
committed by GitHub
parent dbba97f28d
commit be0d00de17
+2 -2
View File
@@ -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
}