Skip to content

Commit

Permalink
Remove null coalesce since we are using some
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Mar 29, 2024
1 parent 8eced8e commit 10beb0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1193,8 +1193,8 @@ function hasOnlyTransactionsWithPendingRoutes(iouReportID: string | undefined):
* If the report is a thread and has a chat type set, it is a workspace chat.
*/
function isWorkspaceThread(report: OnyxEntry<Report>): boolean {
const chatType = getChatType(report) ?? '';
return isThread(report) && isChatReport(report) && CONST.WORKSPACE_ROOM_TYPES.some(type => chatType === type);
const chatType = getChatType(report);
return isThread(report) && isChatReport(report) && CONST.WORKSPACE_ROOM_TYPES.some((type) => chatType === type);
}

/**
Expand Down

0 comments on commit 10beb0a

Please sign in to comment.