Open IuliiaHerets opened 16 hours ago
Triggered auto assignment to @zanyrenney (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
Edited by proposal-police: This proposal was edited at 2024-11-21 13:34:28 UTC.
Profile - Display Name Not Live Updated When Adding Legal Name to New Account
When we call api updateLegalName
we are not updating displayName
in personalDetails
Onyx
We should update displayName
in personalDetails
Onyx base on legalFirstName
, legalLastName
when displayName
is equal to login (default value) or we don't have both firstName
and lastName
like BE is returning when we call OpenReport
API
{
onyxMethod: Onyx.METHOD.MERGE,
key: ONYXKEYS.PERSONAL_DETAILS_LIST,
value: {
[currentUserAccountID]: {
displayName: PersonalDetailsUtils.createDisplayName(currentUserEmail ?? '', {
legalFirstName,
legalLastName,
}),
},
},
},
We can update field firstName
and lastName
too
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: v9.0.65-1 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers): applausetester+tw33434343553@applause.expensifail.com Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
When a legal name is added to a newly created account (or an account without a previously set display name), the Display Name should automatically inherit the legal name and update in real time.
Actual Result:
The Display Name does not update live after adding a legal name. It only updates after navigating back.
Workaround:
Unknown
Platforms:
Screenshots/Videos
https://github.com/user-attachments/assets/ee3cee57-2ad9-4a2d-86c2-cd780b3f6896
View all open jobs on GitHub