diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index f7dca71fd15f..8f1e3c4edc35 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -1268,7 +1268,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 7726d07a3074..8b5a50d8d5c8 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;