Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Jul 2, 2024
1 parent 40e86c2 commit 5f3ccd4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,9 @@ function shouldDisableDetailPage(report: OnyxEntry<Report>): boolean {
return false;
}
if (isOneOnOneChat(report)) {
const participantAccountIDs = Object.keys(report?.participants ?? {}).map(Number).filter((accountID) => accountID !== currentUserAccountID);
const participantAccountIDs = Object.keys(report?.participants ?? {})
.map(Number)
.filter((accountID) => accountID !== currentUserAccountID);
return isOptimisticPersonalDetail(participantAccountIDs[0]);
}
return false;
Expand Down

0 comments on commit 5f3ccd4

Please sign in to comment.