Skip to content

Commit 77d95c5

Browse files
authored
Merge pull request Expensify#45320 from Expensify/srikar-renameOnyxKey
Rename Onyx Key
2 parents 4ae133d + 1418fad commit 77d95c5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/libs/ReportUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ function isClosedExpenseReportWithNoExpenses(report: OnyxEntry<Report>): boolean
12681268
*/
12691269
function isArchivedRoom(report: OnyxInputOrEntry<Report>, reportNameValuePairs?: OnyxInputOrEntry<ReportNameValuePairs>): boolean {
12701270
if (reportNameValuePairs) {
1271-
return reportNameValuePairs.isArchived;
1271+
return reportNameValuePairs.private_isArchived;
12721272
}
12731273

12741274
return report?.statusNum === CONST.REPORT.STATUS_NUM.CLOSED && report?.stateNum === CONST.REPORT.STATE_NUM.APPROVED;

src/types/onyx/ReportNameValuePairs.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import type * as OnyxCommon from './OnyxCommon';
33
/** Model of additional report details */
44
type ReportNameValuePairs = OnyxCommon.OnyxValueWithOfflineFeedback<{
55
/** Whether the report is an archived room */
6-
isArchived: boolean;
6+
// eslint-disable-next-line @typescript-eslint/naming-convention
7+
private_isArchived: boolean;
78
}>;
89

910
export default ReportNameValuePairs;

0 commit comments

Comments
 (0)