Skip to content

[$500] Clean up duplicated create expense navigation logic #69179

Description

@neil-marcellini

Problem

If you search the codebase for this comment "If a reportID exists in the report object, it's because either", then you will see that the comment and associated large code block are repeated about 5 times. Duplicated code is likely to cause inconsistencies and bugs, and makes it difficult to read.

Solution

Consolidate that code block, or potentially more if appropriate, into a well named function that can be re-used.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021960040763246044885
  • Upwork Job ID: 1960040763246044885
  • Last Price Increase: 2026-01-29
  • Automatic offers:
    • rohit9625 | Contributor | 108718330
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @RachCHopkins

Activity

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

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in review

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions