Skip to content

Commit

Permalink
Merge pull request Expensify#45320 from Expensify/srikar-renameOnyxKey
Browse files Browse the repository at this point in the history
Rename Onyx Key
  • Loading branch information
srikarparsi authored Jul 15, 2024
2 parents 4ae133d + 1418fad commit 77d95c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,7 @@ function isClosedExpenseReportWithNoExpenses(report: OnyxEntry<Report>): boolean
*/
function isArchivedRoom(report: OnyxInputOrEntry<Report>, reportNameValuePairs?: OnyxInputOrEntry<ReportNameValuePairs>): boolean {
if (reportNameValuePairs) {
return reportNameValuePairs.isArchived;
return reportNameValuePairs.private_isArchived;
}

return report?.statusNum === CONST.REPORT.STATUS_NUM.CLOSED && report?.stateNum === CONST.REPORT.STATE_NUM.APPROVED;
Expand Down
3 changes: 2 additions & 1 deletion src/types/onyx/ReportNameValuePairs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import type * as OnyxCommon from './OnyxCommon';
/** Model of additional report details */
type ReportNameValuePairs = OnyxCommon.OnyxValueWithOfflineFeedback<{
/** Whether the report is an archived room */
isArchived: boolean;
// eslint-disable-next-line @typescript-eslint/naming-convention
private_isArchived: boolean;
}>;

export default ReportNameValuePairs;

0 comments on commit 77d95c5

Please sign in to comment.