Skip to content

Commit

Permalink
lint/style
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkiWines committed May 3, 2024
1 parent f7cdd3f commit 007011d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,12 @@ function isTaskAction(reportAction: OnyxEntry<ReportAction>): boolean {
* Gets the reportID for the transaction thread associated with a report by iterating over the reportActions and identifying the IOU report actions.
* Returns a reportID if there is exactly one transaction thread for the report, and null otherwise.
*/
function getOneTransactionThreadReportID(reportID: string, reportActions: OnyxEntry<ReportActions> | ReportAction[], skipReportTypeCheck: boolean | false = false, isOffline: boolean | undefined = undefined): string | null {
function getOneTransactionThreadReportID(
reportID: string,
reportActions: OnyxEntry<ReportActions> | ReportAction[],
skipReportTypeCheck: boolean | undefined = undefined,
isOffline: boolean | undefined = undefined,
): string | null {
if (!skipReportTypeCheck) {
// If the report is not an IOU, Expense report, or Invoice, it shouldn't be treated as one-transaction report.
const report = allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${reportID}`];
Expand Down

0 comments on commit 007011d

Please sign in to comment.