Skip to content

Commit

Permalink
fix policy when report is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
waterim committed Sep 25, 2023
1 parent 4348c30 commit 8ec88ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/iou/steps/MoneyRequestConfirmPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export default compose(
// eslint-disable-next-line rulesdir/no-multiple-onyx-in-file
withOnyx({
policy: {
key: ({report}) => `${ONYXKEYS.COLLECTION.POLICY}${report.policyID}`,
key: ({report}) => `${ONYXKEYS.COLLECTION.POLICY}${report?.policyID}`,

Check failure on line 396 in src/pages/iou/steps/MoneyRequestConfirmPage.js

View workflow job for this annotation

GitHub Actions / lint

ES2020 optional chaining is forbidden
},
}),
)(MoneyRequestConfirmPage);

0 comments on commit 8ec88ff

Please sign in to comment.