Skip to content

Commit

Permalink
add null safety
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Sep 24, 2024
1 parent 550caca commit 6e108b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionItemSingle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function ReportActionItemSingle({
const {translate} = useLocalize();
const personalDetails = usePersonalDetails() ?? CONST.EMPTY_OBJECT;
const actorAccountID = ReportUtils.getReportActionActorAccountID(action, iouReport);
const policy = usePolicy(report.policyID);
const policy = usePolicy(report?.policyID);
const [invoiceReceiverPolicy] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY}${report?.invoiceReceiver && 'policyID' in report.invoiceReceiver ? report.invoiceReceiver.policyID : -1}`);

let displayName = ReportUtils.getDisplayNameForParticipant(actorAccountID);
Expand Down

0 comments on commit 6e108b1

Please sign in to comment.