-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize loops in formatting personal details #7649
Conversation
const phoneNumber = lodashGet(personalDetailsResponse, 'phoneNumber', ''); | ||
|
||
return { | ||
...finalObject, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything seems the same but this spread here
I reckon it was the bottleneck, if that so you can just swap it like this:
finalObject[login] = {
login,
avatar,
displayName,
};
return finalObject;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Optimize loops in formatting personal details (cherry picked from commit 1923c3d)
🚀 Deployed to production by @roryabraham in version: 1.1.37-2 🚀
|
🚀 Cherry-picked to staging by @luacmartins in version: 1.1.37-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
Details
Fixed Issues
$ #7630
Tests / QA
Note: this can't really be QAed on iOS or Android since there will be no way to inspect the console
Timing:expensify.cash.personal_details_formatted
(need to have the verbose visibility setting turned on)Tested On
Screenshots
Web
Mobile Web
Same as web
Desktop
iOS
Android