Skip to content

Expense - Amount and distance value are magnified by 1000 times in track distance expense #69256

Closed

Description

@mitarachim

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: 9.1.99-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: https://test-management.browserstack.com/projects/2219752/test-runs/TR-439/folder/13176877/41237361/861418614
Email or phone of affected tester (no customers): sdjdoisnjdsosdo@gmail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.5 / Chrome
App Component: Money Requests

Action Performed:

Precondition:

  • Account has self DM.
  1. Go to staging.new.expensify.com
  2. Go to self DM.
  3. Click + > Create expense > Distance.
  4. Enter waypoints > Next.
  5. Remember the amount and distance on the confirm page.
  6. Click Create expense.
  7. Open the transaction thread.

Expected Result:

The amount and distance in the transaction thread should match the confirm page.

Actual Result:

The amount and distance in the transaction thread does not match the confirm page.
The values are magnified by 1000 times.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Screen.Recording.2025-08-26.at.21.44.04.mp4

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    DeployBlocker
    on Aug 26, 2025
  2. melvin-bot commented on Aug 26, 2025

    @melvin-bot

    Triggered auto assignment to @alexpensify (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. melvin-bot commented on Aug 26, 2025

    @melvin-bot

    Triggered auto assignment to @tgolen (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  4. melvin-bot commented on Aug 26, 2025

    @melvin-bot

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

  5. github-actions commented on Aug 26, 2025

    @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. tgolen commented on Aug 26, 2025

    @tgolen
    Contributor

    @neil-marcellini @dominictb This seems very related to the PR for the manual distance functionality. Can you confirm if it is? #68402

  7. tgolen commented on Aug 26, 2025

    @tgolen
    Contributor

    From watching the video above, it appears like the problem is from the backend. The amounts are correct initially when viewing the transaction, but after a second, they update to be the wrong amounts.

    I'm currently trying to reproduce the issue locally.

  8. tgolen commented on Aug 26, 2025

    @tgolen
    Contributor

    I cannot reproduce this locally, but I can reproduce it on staging. The amounts are not 1000 times off, it's something different... For example, with this request:

    1. The API parameter for amount was 2107
    2. The API response returned the transaction amount of -3391188
    Image Image
  9. dominictb commented on Aug 26, 2025

    @dominictb
    Contributor

    I knew the issue. Will raise PR ASAP.

  10. tgolen commented on Aug 26, 2025

    @tgolen
    Contributor

    Oh, actually, from looking at the logs, it probably is front-end. It's not a problem with the amount, it's a problem with the distance. The distance between the two points I added was only maybe 15 miles, but the distance sent in the request was 48K miles.

  11. tgolen commented on Aug 26, 2025

    @tgolen
    Contributor

    Thanks @dominictb !

  12. dominictb commented on Aug 26, 2025

    @dominictb
    Contributor

    Yeah that's correct. It's the distance param. It should not be there for map distance requests.

  13. added
    Reviewing
    on Aug 26, 2025
  14. dominictb commented on Aug 26, 2025

    @dominictb
    Contributor
  15. removed
    DeployBlocker
    on Aug 26, 2025
  16. melvin-bot commented on Aug 26, 2025

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

  17. melvin-bot commented on Aug 26, 2025

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

  18. removed
    DeployBlockerCash
    on Aug 28, 2025
  19. tgolen commented on Sep 2, 2025

    @tgolen
    Contributor

    Since the original PR that lead to this was reverted, I'm going to close this out.

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

Metadata

Metadata

Labels

BugEngineeringHourlyReviewing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions