Skip to content

Commit

Permalink
fix cannot read property undefined transactionID
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanDylann committed Sep 27, 2023
1 parent 537af3d commit add0863
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ export default withOnyx({
key: `${ONYXKEYS.COLLECTION.SELECTED_TAB}${CONST.TAB.RECEIPT_TAB_ID}`,
},
transaction: {
key: ({iou}) => `${ONYXKEYS.COLLECTION.TRANSACTION}${iou.transactionID}`,
key: ({iou}) => `${ONYXKEYS.COLLECTION.TRANSACTION}${iou?.transactionID}`,

Check failure on line 161 in src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsPage.js

View workflow job for this annotation

GitHub Actions / lint

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

0 comments on commit add0863

Please sign in to comment.