Skip to content

Commit

Permalink
Merge pull request #45508 from rojiphil/optional-chaining-isconcierge…
Browse files Browse the repository at this point in the history
…chat

optional chaining for optiondata

(cherry picked from commit 4f82531)
  • Loading branch information
yuwenmemon authored and OSBotify committed Jul 16, 2024
1 parent 0c589fa commit a4a006b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7087,7 +7087,7 @@ function isChatUsedForOnboarding(optionOrReport: OnyxEntry<Report> | OptionData)

return AccountUtils.isAccountIDOddNumber(currentUserAccountID ?? -1)
? isSystemChat(optionOrReport)
: (optionOrReport as OptionData).isConciergeChat ?? isConciergeChatReport(optionOrReport);
: (optionOrReport as OptionData)?.isConciergeChat ?? isConciergeChatReport(optionOrReport);
}

/**
Expand Down

0 comments on commit a4a006b

Please sign in to comment.