From 4f214f705599e5be62d6b51989cb764f60a6ad78 Mon Sep 17 00:00:00 2001 From: Roji Philip Date: Tue, 16 Jul 2024 22:33:54 +0530 Subject: [PATCH] optional chaining --- src/libs/ReportUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index e29a2c14e3c4..f3dd9fc17e39 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -7087,7 +7087,7 @@ function isChatUsedForOnboarding(optionOrReport: OnyxEntry | OptionData) return AccountUtils.isAccountIDOddNumber(currentUserAccountID ?? -1) ? isSystemChat(optionOrReport) - : (optionOrReport as OptionData).isConciergeChat ?? isConciergeChatReport(optionOrReport); + : (optionOrReport as OptionData)?.isConciergeChat ?? isConciergeChatReport(optionOrReport); } /**