Skip to content

Commit 2456f39

Browse files
authored
Merge pull request Expensify#65852 from software-mansion-labs/korytko/fix-lhn-workspace-crash
[Avatars - Reports] Fix app crashing when opening a workspace chat
2 parents 90a1901 + cd283f4 commit 2456f39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hooks/useReportAvatarDetails.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function useReportAvatarDetails({iouReport, report, action, ...rest}: AvatarDeta
259259
const attendeesIDs = transactions
260260
// If the transaction is a split, then attendees are not present as a property so we need to use a helper function.
261261
?.flatMap<number | undefined>((tr) =>
262-
tr.comment?.attendees?.map((att) => (tr.comment?.source === CONST.IOU.TYPE.SPLIT ? getSplitAuthor(tr, splits) : getPersonalDetailByEmail(att.email)?.accountID)),
262+
tr.comment?.attendees?.map?.((att) => (tr.comment?.source === CONST.IOU.TYPE.SPLIT ? getSplitAuthor(tr, splits) : getPersonalDetailByEmail(att.email)?.accountID)),
263263
)
264264
.filter((accountID) => !!accountID);
265265

0 commit comments

Comments
 (0)