Skip to content

Book travel -App reopens company address page instead of T&C page after saving company address #49870

Closed

Description

@lanitochka17

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.0.41-1
Reproducible in staging?: Y
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): applausetester+salalalala@applause.expensifail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Open FAB > Book travel
  3. Click Book travel
  4. Select address and save it
  5. Click Book travel

Expected Result:

App will redirect to T&C page

Actual Result:

App reopens company address page

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6617726_1727463541833.20240928_023429.mp4

View all open jobs on GitHub

Activity

  1. melvin-bot commented on Sep 27, 2024

    @melvin-bot

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

  2. github-actions commented on Sep 27, 2024

    @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.
  3. lanitochka17 commented on Sep 27, 2024

    @lanitochka17
    Author

    We think that this bug might be related to #vip-travel

  4. ishpaul777 commented on Sep 27, 2024

    @ishpaul777
    Contributor
  5. Nodebrute commented on Sep 27, 2024

    @Nodebrute
    Contributor

    Proposal

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

    App reopens company address page instead of T&C page after saving company address

    What is the root cause of that problem?

    We are checking for isEmptyObject(travelSettings)

    if (isEmptyObject(travelSettings)) {
    Navigation.navigate(ROUTES.WORKSPACE_PROFILE_ADDRESS.getRoute(activePolicyID ?? '-1', Navigation.getActiveRoute()));
    return;

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

    We should check if !hasPolicyAddress only then we should navigate to address page

    if (isEmptyObject(travelSettings)) {
    Navigation.navigate(ROUTES.WORKSPACE_PROFILE_ADDRESS.getRoute(activePolicyID ?? '-1', Navigation.getActiveRoute()));
    return;

        const hasPolicyAddress = !isEmptyObject(policy?.address);
       if (!hasPolicyAddress) {
            Navigation.navigate(ROUTES.WORKSPACE_PROFILE_ADDRESS.getRoute(activePolicyID ?? '-1', Navigation.getActiveRoute()));
            return;
        }
    

    We can pass policy to this function

    What alternative solutions did you explore? (Optional)

  6. AndrewGable commented on Sep 27, 2024

    @AndrewGable
    Contributor
  7. daledah commented on Sep 28, 2024

    @daledah
    Contributor
  8. roryabraham commented on Sep 29, 2024

    @roryabraham
    Contributor

    Book Travel is behind a beta - not sure if it needs to be a blocker but the solution looks simple. Looks like we have a good number of customers on the beta, so if we can fix it that'd probably be best.

  9. self-assigned this
    on Sep 30, 2024
  10. luacmartins commented on Sep 30, 2024

    @luacmartins
    Contributor

    Fixed in staging. Closing.

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions