Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Jul 11, 2024
1 parent 360f07c commit 5fd50f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/TransactionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ function getAllReportTransactions(reportID?: string, transactions?: OnyxCollecti
// For reference, https://github.com/Expensify/App/pull/26536#issuecomment-1703573277.
// We will update this in a follow-up Issue. According to this comment: https://github.com/Expensify/App/pull/26536#issuecomment-1703591019.
const nonNullableTransactions = Object.values(transactions ?? allTransactions ?? {}).filter((transaction) => !!transaction);
return nonNullableTransactions.filter((transaction) => `${transaction.reportID}` === `${reportID}`);
return nonNullableTransactions.filter((transaction) => `${transaction?.reportID}` === `${reportID}`);

Check failure on line 585 in src/libs/TransactionUtils.ts

View workflow job for this annotation

GitHub Actions / typecheck

Type '(({ amount: number; taxAmount?: number | undefined; taxCode?: string | undefined; billable?: boolean | undefined; category?: string | undefined; comment: Comment; created: string; ... 35 more ...; linkedTrackedExpenseReportID?: string | undefined; } & OfflineFeedback<...>) | undefined)[]' is not assignable to type '({ amount: number; taxAmount?: number | undefined; taxCode?: string | undefined; billable?: boolean | undefined; category?: string | undefined; comment: Comment; created: string; ... 35 more ...; linkedTrackedExpenseReportID?: string | undefined; } & OfflineFeedback<...>)[]'.
}

function waypointHasValidAddress(waypoint: RecentWaypoint | Waypoint): boolean {
Expand Down

0 comments on commit 5fd50f0

Please sign in to comment.