Skip to content

[Due for payment 2026-03-13] Expense - Tapping rate field is not responsive in distance expense confirm page #84137

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.3.30-1
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #74967
Email or phone of affected tester (no customers): dreamnitethedragon@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Redminote 10S Android 13
App Component: Money Requests

Action Performed:

  1. Launch app
  2. Login with new account
  3. Tap fab - track distance
  4. Select 2 waypoints and tap next
  5. Select self DM
  6. Tap rate

Expected Result:

Tapping rate field must be responsive in distance expense confirm page.

Actual Result:

Tapping rate field is not responsive in distance expense confirm page.

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

Issue OwnerCurrent Issue Owner: @dylanexpensify

Activity

  1. added
    DeployBlockerCash
    Bug
    on Mar 4, 2026
  2. melvin-bot commented on Mar 4, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #74967

  3. melvin-bot commented on Mar 4, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  4. melvin-bot commented on Mar 4, 2026

    @melvin-bot

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

  5. github-actions commented on Mar 4, 2026

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  6. OSBotify commented on Mar 4, 2026

    @OSBotify
    Contributor

    🔍 Investigation Summary

    Classification: Frontend bug
    Causing PR: #84084 - "[CP Staging] Revert Merge pull request #74967" by @FitseTLT (High confidence)
    Related Issues: This is a regression from the partial revert of PR #74967

    Recommendation: ROLL FORWARD

    A fix PR is needed to make the interactive prop consistent with the shouldShowRightIcon prop. PR #84084 incompletely reverted PR #74967, causing a mismatch between these two props.

    Labels: No label changes needed - this is clearly a frontend bug that blocks the App deploy, so DeployBlockerCash should remain.

    📋 Detailed Analysis

    Evidence

    Issue #84137 reports that tapping the rate field is not responsive on the distance expense confirm page when tracking distance in selfDM (unreported expense).

    PR #74967 originally made changes to enable the rate field for track/unreported expenses by removing !isUnreported from both:

    • shouldShowRightIcon prop (controls whether the chevron icon shows)
    • interactive prop (controls whether the field is clickable)

    However, PR #74967 caused multiple deploy blockers (issues #83953, #83955, #83957, #83958, #83964, #83972, #83990, #84006, #84007, #84010, #84013), so it was partially reverted via PR #84084.

    Verification

    Examining the staging branch file content confirms:

    • Line 588: shouldShowRightIcon={!!rate && !isReadOnly && iouType !== CONST.IOU.TYPE.SPLIT} (no !isUnreported)
    • Line 628: interactive={!!rate && !isReadOnly && iouType !== CONST.IOU.TYPE.SPLIT && !isUnreported} (HAS !isUnreported)

    PR #84084 diff shows it reverted the interactive prop change but not the shouldShowRightIcon change:

    -interactive={!!rate && !isReadOnly && iouType !== CONST.IOU.TYPE.SPLIT}
    +interactive={!!rate && !isReadOnly && iouType !== CONST.IOU.TYPE.SPLIT && !isUnreported}

    This mismatch causes the chevron icon to appear (suggesting the field is clickable) but the field does not respond to taps.

    Root Cause

    The partial revert in PR #84084 created an inconsistency between the visual indicator (shouldShowRightIcon) and the actual interactivity (interactive) of the rate field. For unreported/track distance expenses in selfDM (isUnreported === true):

    • The chevron icon is shown (because shouldShowRightIcon has no !isUnreported check)
    • But taps do nothing (because interactive includes !isUnreported, making it false)

    Fix

    The fix should either:

    1. Re-add !isUnreported to shouldShowRightIcon to match interactive (making the field non-interactive for unreported expenses)
    2. Remove !isUnreported from interactive to match shouldShowRightIcon (making the field interactive for unreported expenses)

    Option 1 is recommended since PR #74967 was reverted due to multiple issues with enabling this functionality for unreported expenses.

  7. MelvinBot commented on Mar 4, 2026

    @MelvinBot
    Contributor

    Proposal

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

    Tapping the rate field on the distance expense confirmation page does nothing when creating a distance expense in self DM. The field appears non-interactive (no right arrow icon, no response to taps).

    What is the root cause of that problem?

    The interactive prop on the rate field's MenuItemWithTopDescription includes the condition !isUnreported, which evaluates to false for self DM distance expenses — making the field non-tappable.

    In MoneyRequestConfirmationListFooter.tsx:625:

    interactive={!!rate && !isReadOnly && iouType !== CONST.IOU.TYPE.SPLIT && !isUnreported}

    When a user selects self DM as the participant, IOURequestStepParticipants.tsx:198 sets the transaction's reportID to CONST.REPORT.UNREPORTED_REPORT_ID ('0'). Then in the footer at line 338:

    const isUnreported = transaction?.reportID === CONST.REPORT.UNREPORTED_REPORT_ID;

    This evaluates to true, making !isUnreported → false, which forces interactive to false. The same condition on line 595 also hides the right arrow icon.

    Note: the rate value itself is valid (~72.5 for USD, sourced from CURRENCY_TO_DEFAULT_MILEAGE_RATE via getRateForP2P), so !!rate passes. The issue is specifically !isUnreported.

    PR #74967 previously fixed this by removing !isUnreported, but it was reverted via PR #84084 ([CP Staging] Revert), reintroducing this behavior.

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

    In src/components/MoneyRequestConfirmationListFooter.tsx, remove && !isUnreported from both conditions on the rate field:

    Line 595 — change shouldShowRightIcon:

    shouldShowRightIcon={!!rate && !isReadOnly && iouType !== CONST.IOU.TYPE.SPLIT}
    

    Line 625 — change interactive:

    interactive={!!rate && !isReadOnly && iouType !== CONST.IOU.TYPE.SPLIT}
    

    The existing onPress handler (lines 607-619) already correctly handles the self DM case: when !isPolicyExpenseChat, it navigates to MONEY_REQUEST_UPGRADE with the DISTANCE_RATES upgrade path. Removing the !isUnreported guard allows users to tap the field and reach this upgrade flow.

    What alternative solutions did you explore? (Optional)

    An alternative would be to re-land all changes from the reverted PR #74967 (which also modified the onPress routing logic for track expenses). However, since that PR was reverted in its entirety, the minimal fix of just removing !isUnreported is safer and directly addresses this specific bug while keeping the existing onPress behavior intact.


    Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, or @MelvinBot <your feedback> to refine this analysis.

  8. 7 remaining items

  9. cristipaval commented on Mar 4, 2026

    @cristipaval
    Contributor

    Retest requested here

  10. m-natarajan commented on Mar 4, 2026

    @m-natarajan

    Pass, Windows 10 / Chrome (PR reverted where the rate field in self DM does not display a right arrow icon) and Honor x6b /Android 14, v9.3.30-2

    bandicam.2026-03-04.11-39-44-574.mp4
    SVID_20260304_114552_1.mp4
  11. removed
    DeployBlockerCash
    on Mar 4, 2026
  12. cristipaval commented on Mar 4, 2026

    @cristipaval
    Contributor

    Thanks! closing

  13. added
    Weekly
    Awaiting Payment
    and removed
    Hourly
    on Mar 6, 2026
  14. changed the title [-]Expense - Tapping rate field is not responsive in distance expense confirm page[/-] [+][Due for payment 2026-03-13] Expense - Tapping rate field is not responsive in distance expense confirm page[/+] on Mar 6, 2026
  15. removed
    Reviewing
    on Mar 6, 2026
  16. melvin-bot commented on Mar 6, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  17. melvin-bot commented on Mar 6, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.31-12 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-03-13. 🎊

    For reference, here are some details about the assignees on this issue:

    • @parasharrajat requires payment through NewDot Manual Requests
    • @FitseTLT requires payment (Needs manual offer from BZ)
  18. melvin-bot commented on Mar 6, 2026

    @melvin-bot

    @parasharrajat / @FitseTLT @dylanexpensify The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  19. melvin-bot commented on Mar 6, 2026

    @melvin-bot

    Current assignee @dylanexpensify is eligible for the Awaiting Payment assigner, not assigning anyone new.

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

Metadata

Metadata

Labels

Awaiting PaymentBugEngineeringWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions