You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Contact methods - Set as Default is missing for secondary contacts #76106
Version Number: v9.2.64-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack:#73464 Email or phone of affected tester (no customers):applausetester+dp267@applause.expensifail.com Issue reported by: Applause Internal Team Device used: Mac / Safari App Component: Search
Action Performed:
Prerequisites: Log in with Expensify account (not Gmail account). Account has several contacts methods added.
Go to Account > Profile > Contact methods
Click main contact
Click secondary contact
Expected Result:
Set as default option should be displayed as it says when clicking main contact
Please re-state the problem that we are trying to solve in this issue.
Contact methods - Set as Default is missing for secondary contacts
What is the root cause of that problem?
I cannot accurately identify RCA because I do not have access to applause accounts, and it is impossible to use a one-time login for them. But I suspect that the problem here may be that we always display this text for the default method:
yourDefaultContactMethod: "This is your current default contact method. Before you can delete it, you'll need to choose another contact method and click “Set as default”.",
Applause accounts can have a securityGroup with enableRestrictedPrimaryLogin. Here is the final check we use to determine whether a contact method can be set as the default:
if the value is false, display what is currently displayed; if true, we can add text indicating that it is not possible to change the primary email on this private domain.
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Activity
melvin-bot commentedon Nov 26, 2025
Triggered auto assignment to @trjExpensify (
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.Eskalifer1 commentedon Nov 26, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Contact methods - Set as Default is missing for secondary contacts
What is the root cause of that problem?
I cannot accurately identify RCA because I do not have access to applause accounts, and it is impossible to use a one-time login for them. But I suspect that the problem here may be that we always display this text for the default method:
App/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx
Line 246 in b241944
App/src/languages/en.ts
Line 1739 in b241944
Applause accounts can have a
securityGroupwithenableRestrictedPrimaryLogin. Here is the final check we use to determine whether a contact method can be set as the default:App/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx
Lines 116 to 118 in b241944
Here is the entire check for context:
App/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx
Lines 93 to 119 in b241944
What changes do you think we should make in order to solve the problem?
We can change the text and display different translations (or one dynamically) depending on the value of
false, display what is currently displayed; iftrue, we can add text indicating that it is not possible to change the primary email on this private domain.What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
trjExpensify commentedon Nov 26, 2025
Not a bug, they have the security group restriction in place, which prevents changing the default contact method:
@jponikarchuk please make the team aware. Thanks!
jponikarchuk commentedon Nov 26, 2025
@trjExpensify Thank you!