diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 97d8c605b0ab6..f8cc8dd8ea9e1 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -1255,7 +1255,7 @@ function isClosedExpenseReportWithNoExpenses(report: OnyxEntry): boolean */ function isArchivedRoom(report: OnyxInputOrEntry, reportNameValuePairs?: OnyxInputOrEntry): 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; diff --git a/src/types/onyx/ReportNameValuePairs.ts b/src/types/onyx/ReportNameValuePairs.ts index 7726d07a3074f..8b5a50d8d5c8d 100644 --- a/src/types/onyx/ReportNameValuePairs.ts +++ b/src/types/onyx/ReportNameValuePairs.ts @@ -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;