diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 4320d7a225c6..9fa60613ab92 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -7193,8 +7193,8 @@ function shouldShowMerchantColumn(transactions: Transaction[]) { */ function isChatUsedForOnboarding(optionOrReport: OnyxEntry | OptionData): boolean { // onboarding can be an array for old accounts and accounts created from olddot - if (!Array.isArray(onboarding) && onboarding?.chatReportID === optionOrReport?.reportID) { - return true; + if (onboarding && !Array.isArray(onboarding) && onboarding.chatReportID) { + return onboarding.chatReportID === optionOrReport?.reportID; } return AccountUtils.isAccountIDOddNumber(currentUserAccountID ?? -1)