fix(settings): gender is set only in the people archive; drop the 个人资料 duplicate (BUG-1119)
Independent Staging Quality Gate / publish (push) Canceled after 0s
Independent Staging Quality Gate / validate (push) Canceled after 7m59s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N4f2nya58RoRu4yEmJgRGE
This commit is contained in:
Jesse_Chen
2026-09-30 11:11:47 +08:00
co-authored by Claude Opus 5.5
parent 3177ffe61d
commit 3e29b697db
8 changed files with 34 additions and 79 deletions
-6
View File
@@ -35,9 +35,3 @@ export function profileGenderLabel(value: unknown): string {
const gender = parseProfileGender(value);
return gender ? PROFILE_GENDER_LABELS[gender] : PROFILE_GENDER_EMPTY_LABEL;
}
/** The account's raw profile object with the saved gender (null = not filled). */
export function withSavedGender(profile: unknown, gender: ProfileGender | null): Record<string, unknown> {
const base = profile && typeof profile === "object" && !Array.isArray(profile) ? profile as Record<string, unknown> : {};
return { ...base, gender };
}