Skip to content

Commit

Permalink
Use some instead to fool typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Mar 29, 2024
1 parent cdc8534 commit 8eced8e
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 @@ -1194,7 +1194,7 @@ function hasOnlyTransactionsWithPendingRoutes(iouReportID: string | undefined):
*/
function isWorkspaceThread(report: OnyxEntry<Report>): boolean {
const chatType = getChatType(report) ?? '';
return isThread(report) && isChatReport(report) && typeof chatType === 'string' && CONST.WORKSPACE_ROOM_TYPES.includes(chatType);
return isThread(report) && isChatReport(report) && CONST.WORKSPACE_ROOM_TYPES.some(type => chatType === type);
}

/**
Expand Down

0 comments on commit 8eced8e

Please sign in to comment.