Skip to content

[$250] Refactor getPolicyExpenseReportOption() to change privateIsArchived parameter to boolean #84608

@tgolen

Description

@tgolen

coming from https://github.com/Expensify/App/pull/80209/changes#diff-010911fd56cd74ff46fd42cd2a137e01f8a050eaf4a038d837ffa3b5912a5607 cc @dukenv0307

Problem

There is a long chain of code that starts with getPolicyExpenseReportOption() accepting a string value for privateIsArchived. When you trace the code down through createOption(), you can see that privateIsArchived is always cast to a boolean by prepending the value with !!.

Solution

Update the code path for this value to be a boolean all the way from the view components (use the useReportIsArchived() hook) down to where the value is used.

Issue OwnerCurrent Issue Owner: @TaduJR
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022031040957245803210
  • Upwork Job ID: 2031040957245803210
  • Last Price Increase: 2026-03-16

Metadata

Metadata

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions