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
[Due for payment 2025-11-19] [$250] Entered distance doesn't disappear from Track Distance page when switching tabs #74321
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.2.44-1 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by:@linhvovan29546 Slack conversation (hyperlinked to channel name): #expensify_bugs
Please re-state the problem that we are trying to solve in this issue.
Entered distance doesn't disappear from Track Distance page when switching tabs
What is the root cause of that problem?
When the user switches between tabs, the useEffect that listens for tab changes only clears the form error but doesn't clear the entered distance value from the form
We can include selectedTab into deps, so every time tabs change we will check the value and resetting
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.
[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:
[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:
[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.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Click FAB > Track Distance
Enter an distance
Switch to the Map tab
Switch back to the Manual tab
Make sure the distance is disappeared after switching between tabs
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Nov 5, 2025
Triggered auto assignment to @joekaufmanexpensify (
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.nyomanjyotisa commentedon Nov 5, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Entered distance doesn't disappear from Track Distance page when switching tabs
What is the root cause of that problem?
When the user switches between tabs, the
useEffectthat listens for tab changes only clears the form error but doesn't clear the entered distance value from the formApp/src/pages/iou/request/step/IOURequestStepDistanceManual.tsx
Lines 310 to 315 in eb1b8f1
What changes do you think we should make in order to solve the problem?
Update the
useEffectto also clear the distance input when switching tabs:What alternative solutions did you explore? (Optional)
None
Eskalifer1 commentedon Nov 5, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Entered distance doesn't disappear from Track Distance page when switching tabs
What is the root cause of that problem?
Currently we dont reset value on tab change, so value remains
What changes do you think we should make in order to solve the problem?
We already have useEffect for initialization here:
App/src/pages/iou/request/step/IOURequestStepDistanceManual.tsx
Lines 96 to 101 in 25cc80d
We can include
selectedTabinto deps, so every time tabs change we will check the value and resettingWhat 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.
joekaufmanexpensify commentedon Nov 5, 2025
@nyomanjyotisa @truph01 @Julesssss shouldn't this have been handled in #73475? It seems like the exact issue, just on a different menu
Julesssss commentedon Nov 5, 2025
Good spot. We didn't specifically call out that we would fix this other flow in the proposal.
@nyomanjyotisa @truph01 would you like to work on this second instance for a 50% of the typical bounty? Given that we already have the solution
truph01 commentedon Nov 5, 2025
@Julesssss I'd like to work on this issue as C+
Eskalifer1 commentedon Nov 5, 2025
I believe here is different RCA @Julesssss
Julesssss commentedon Nov 5, 2025
@nyomanjyotisa's proposal works for me
27 remaining items
joekaufmanexpensify commentedon Nov 19, 2025
Bumped checklist in slack
joekaufmanexpensify commentedon Nov 19, 2025
@Eskalifer1 offer sent!
joekaufmanexpensify commentedon Nov 19, 2025
We'll pay this out as soon as the checklist is completed
truph01 commentedon Nov 19, 2025
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:
[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:
[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.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
joekaufmanexpensify commentedon Nov 20, 2025
Regression issue: https://github.com/Expensify/Expensify/issues/570621
joekaufmanexpensify commentedon Nov 20, 2025
All set to pay!
joekaufmanexpensify commentedon Nov 20, 2025
Payment Summary
joekaufmanexpensify commentedon Nov 20, 2025
@Eskalifer1 $250 sent and contract ended!
joekaufmanexpensify commentedon Nov 20, 2025
@truph01 $250 sent and contract ended!
joekaufmanexpensify commentedon Nov 20, 2025
Upwork job closed
joekaufmanexpensify commentedon Nov 20, 2025
All set, thanks everyone 👍