Skip to content

Commit

Permalink
typescript fix pt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkiWines committed Apr 2, 2024
1 parent 3350d77 commit 3b04a3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MoneyReportHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ function MoneyReportHeader({session, policy, chatReport, nextStep, report: money
if (!reportActions || !transactionThreadReport?.parentReportActionID) {
return null;
}
return reportActions.find((action) => action.reportActionID === transactionThreadReport.parentReportActionID ?? '0') as OnyxTypes.ReportAction;
return reportActions.find((action) => action.reportActionID === transactionThreadReport.parentReportActionID);
}, [reportActions, transactionThreadReport?.parentReportActionID]);
const isDeletedParentAction = ReportActionsUtils.isDeletedAction(requestParentReportAction);
const isDeletedParentAction = ReportActionsUtils.isDeletedAction(requestParentReportAction as OnyxTypes.ReportAction);

// Only the requestor can delete the request, admins can only edit it.
const isActionOwner = typeof requestParentReportAction?.actorAccountID === 'number' && typeof session?.accountID === 'number' && requestParentReportAction.actorAccountID === session?.accountID;
Expand Down

0 comments on commit 3b04a3f

Please sign in to comment.