From a4a006b8d0adddbfeaf93b45ed5e8a2e8db66fc7 Mon Sep 17 00:00:00 2001 From: Yuwen Memon Date: Tue, 16 Jul 2024 15:01:58 -0700 Subject: [PATCH] Merge pull request #45508 from rojiphil/optional-chaining-isconciergechat optional chaining for optiondata (cherry picked from commit 4f8253112217fe3749151c2591366c7e6b949fb4) --- 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 20680a318a88..08f54e0f05b0 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); } /**