Skip to content

Commit

Permalink
typescript fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkiWines committed Apr 2, 2024
1 parent 74ba28e commit bcc8535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MoneyReportHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function MoneyReportHeader({session, policy, chatReport, nextStep, report: money
if (!reportActions || !transactionThreadReport?.parentReportActionID) {
return null;
}
return reportActions.find((action) => action.reportActionID === transactionThreadReport.parentReportActionID ?? '0');
return reportActions.find((action) => action.reportActionID === transactionThreadReport.parentReportActionID ?? '0') as OnyxTypes.ReportAction;

Check failure on line 68 in src/components/MoneyReportHeader.tsx

View workflow job for this annotation

GitHub Actions / Run ESLint

Use a ! assertion to more succinctly remove null and undefined from the type
}, [reportActions, transactionThreadReport?.parentReportActionID]);
const isDeletedParentAction = ReportActionsUtils.isDeletedAction(parentReportAction);

Expand Down

0 comments on commit bcc8535

Please sign in to comment.