[accounts] clean up email in case null causes issues

This commit is contained in:
Devin Zuczek
2026-08-12 16:30:16 -04:00
parent 8364a0b5f6
commit 8e0e92b449
3 changed files with 18 additions and 7 deletions
@@ -161,6 +161,9 @@ describe('auth-gated endpoints', () => {
personalPronouns: 0,
identityFlags: 0,
availableUsernameChanges: 1,
// An unset email is "", not null — the client reads it as a string, and the
// hub frame this DTO also rides drops null values outright.
email: '',
})
// juniorState + parentAccountId must be omitted when null, not emitted as
// null, or the client's enum parser throws on `juniorState`. `phone` isn't