Skip to content

[WAITING ON CHECKLIST] [$250] Bank - Authorized payer is displayed as phone number@expensify.sms. #78762

Closed

Description

@jponikarchuk

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.2.90-2
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/folder/13177080/test-cases/48358512
Email or phone of affected tester (no customers): dreamnitethedragon+yydyd373@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Redminote 10S Android 13
App Component: Other

Action Performed:

Pre-condition
Invite a phone number user with admin role
Add a fully verified bank account VBA

  1. Launch app
  2. Go to workspace settings
  3. Tap workflows
  4. Tap Payer
  5. Select phone number user

Expected Result:

Authorized payer must not be displayed as phone number@expensify.sms

Actual Result:

Authorized payer is displayed as phone number@expensify.sms.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022006877116217505002
  • Upwork Job ID: 2006877116217505002
  • Last Price Increase: 2026-01-01
Issue OwnerCurrent Issue Owner: @jliexpensify

Activity

  1. added
    Daily
    Bug
    on Jan 1, 2026
  2. melvin-bot commented on Jan 1, 2026

    @melvin-bot

    Triggered auto assignment to @jliexpensify (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.

  3. jliexpensify commented on Jan 1, 2026

    @jliexpensify
    Contributor

    @jponikarchuk I'm a bit confused, where is this happening?

    Authorized payer is displayed as phone number@expensify.sms.

    Can you add a screenshot highlighting this?

  4. nyomanjyotisa commented on Jan 1, 2026

    @nyomanjyotisa
    Member

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Bank - Authorized payer is displayed as phone number@expensify.sms

    What is the root cause of that problem?

    The authorized payer display name is retrieved by directly accessing the displayName property from personal details instead of using the getDisplayNameOrDefault or formatPhoneNumber. For phone number users without display name, the backend sets displayName the same as login (e.g., "+1234567890@expensify.sms"), so directly accessing displayName returns the raw value with the SMS domain

    const displayNameForAuthorizedPayer = useMemo(
    () => getPersonalDetailByEmail(policy?.achAccount?.reimburser ?? '')?.displayName ?? policy?.achAccount?.reimburser,
    [policy?.achAccount?.reimburser],
    );

    What changes do you think we should make in order to solve the problem?

    We should use getDisplayNameOrDefault instead of directly accessing the displayName property

        const displayNameForAuthorizedPayer = useMemo(
            () => getDisplayNameOrDefault(getPersonalDetailByEmail(policy?.achAccount?.reimburser ?? ''), policy?.achAccount?.reimburser),
            [policy?.achAccount?.reimburser],
        );

    const displayNameForAuthorizedPayer = useMemo(
    () => getPersonalDetailByEmail(policy?.achAccount?.reimburser ?? '')?.displayName ?? policy?.achAccount?.reimburser,
    [policy?.achAccount?.reimburser],
    );

    Image

    What alternative solutions did you explore? (Optional)

    We could use formatPhoneNumber combined with getDisplayNameOrDefault (as done in WorkspaceWorkflowsPayerPage)

        const displayNameForAuthorizedPayer = useMemo(
            () => formatPhoneNumber(getDisplayNameOrDefault(getPersonalDetailByEmail(policy?.achAccount?.reimburser ?? ''), policy?.achAccount?.reimburser)),
            [policy?.achAccount?.reimburser, formatPhoneNumber],
        );

    Or like this without getDisplayNameOrDefault

        const displayNameForAuthorizedPayer = useMemo(
            () => formatPhoneNumber(getPersonalDetailByEmail(policy?.achAccount?.reimburser ?? '')?.displayName ?? policy?.achAccount?.reimburser ?? ''),
            [formatPhoneNumber, policy?.achAccount?.reimburser],
        );

    const displayNameForAuthorizedPayer = useMemo(
    () => getPersonalDetailByEmail(policy?.achAccount?.reimburser ?? '')?.displayName ?? policy?.achAccount?.reimburser,
    [policy?.achAccount?.reimburser],
    );

    Image
  5. added
    External
    on Jan 1, 2026
  6. melvin-bot commented on Jan 1, 2026

    @melvin-bot
  7. changed the title [-]Bank - Authorized payer is displayed as phone number@expensify.sms.[/-] [+][$250] Bank - Authorized payer is displayed as phone number@expensify.sms.[/+] on Jan 1, 2026
  8. added
    Help Wanted
    on Jan 1, 2026
  9. melvin-bot commented on Jan 1, 2026

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (External)

  10. yatin-italy commented on Jan 2, 2026

    @yatin-italy

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    On the Workspace Workflows page, authorized payers with phone-number-based accounts were displayed using their internal identifier (e.g., +1234567890@expensify.sms) instead of a human-readable name or properly formatted phone number.


    What is the root cause of that problem?

    The page was deriving the display name using:

    • createDisplayName directly with the reimburser and personal details

    For phone-number-based users, this exposed the raw SMS-based identifier because the formatting was not applied at the presentation layer. Unlike other workflow pages, this page did not normalize the reimburser using getDisplayNameOrDefault and formatPhoneNumber.


    What changes do you think we should make in order to solve the problem?

    Solution: Refactor displayNameForAuthorizedPayer to normalize and format phone-number-based payers consistently.

    Implementation Details:

    • File: WorkspaceWorkflowsPage.tsx

    • Changes Made:

      1. Destructured formatPhoneNumber from the useLocalize hook.
      2. Refactored displayNameForAuthorizedPayer useMemo to:
        • Use getPersonalDetailByEmail to fetch personal details
        • Use getDisplayNameOrDefault to compute a safe display name
        • Apply formatPhoneNumber to the result to ensure consistent formatting for phone numbers

    Updated Code Snippet:

    const { translate, localeCompare, formatPhoneNumber } = useLocalize();
    
    const displayNameForAuthorizedPayer = useMemo(() => {
        const reimburser = policy?.achAccount?.reimburser ?? '';
        const personalDetail = getPersonalDetailByEmail(reimburser);
        const displayName = getDisplayNameOrDefault(personalDetail, reimburser);
        return formatPhoneNumber(displayName);
    }, [policy?.achAccount?.reimburser, formatPhoneNumber]);

    Result:

    • Phone-number-based payers now appear with a properly formatted display name (e.g., +1 (234) 567-8900)
    • SMS-based internal identifiers are no longer exposed
    • Consistent with other workflow pages
    • No impact on backend logic or authorization

    What alternative solutions did you explore? (Optional)

    1. Continue using createDisplayName without formatting

      • Does not fix SMS identifier exposure
    2. Manually format SMS identifiers inline

      • Duplicates existing logic in getDisplayNameOrDefault
      • Harder to maintain
  11. cosmicvulpes commented on Jan 2, 2026

    @cosmicvulpes
    Contributor

    🚫 Duplicated proposal withdrawn by 🤖 ProposalPolice.

  12. 25 remaining items

  13. jliexpensify commented on Jan 30, 2026

    @jliexpensify
    Contributor

    Bumping @alitoshmatov again for the checklist

  14. jliexpensify commented on Jan 30, 2026

    @jliexpensify
    Contributor

    Payment Summary

    • C: @nyomanjyotisa $250 (to be paid via Upworks) - please accept the job
    • C+: @alitoshmatov $250 (to be paid via New Expensify requests)

    https://www.upwork.com/jobs/~022006877116217505002

  15. changed the title [-][Due for payment 2026-01-29] [$250] Bank - Authorized payer is displayed as phone number@expensify.sms.[/-] [+][WAITING ON CHECKLIST] [$250] Bank - Authorized payer is displayed as phone number@expensify.sms.[/+] on Jan 30, 2026
  16. jliexpensify commented on Jan 30, 2026

    @jliexpensify
    Contributor

    Paid and job closed, waiting on checklist @alitoshmatov

  17. jliexpensify commented on Feb 9, 2026

    @jliexpensify
    Contributor

    Bump @alitoshmatov for the checklist please

  18. jliexpensify commented on Feb 11, 2026

    @jliexpensify
    Contributor
  19. alitoshmatov commented on Feb 13, 2026

    @alitoshmatov
    Contributor

    BugZero Checklist:

    • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to comment: https://github.com/Expensify/App/pull/39017/changes#r2802035888

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

      Link to discussion: No discussion was created

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    I don't think this requires regression test

  20. jliexpensify commented on Feb 15, 2026

    @jliexpensify
    Contributor

    Thanks, closing!

  21. JmillsExpensify commented on Feb 21, 2026

    @JmillsExpensify
    Contributor

    $250 approved for @alitoshmatov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions