Skip to content

Commit

Permalink
fix crash on money request confirmation page
Browse files Browse the repository at this point in the history
  • Loading branch information
situchan committed Feb 20, 2024
1 parent 0f372c2 commit c3dcde4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/iou/request/step/IOURequestStepConfirmation.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function IOURequestStepConfirmation({
if (!transaction.category) {
return;
}
if (policyCategories[transaction.category] && !policyCategories[transaction.category].enabled) {
if (policyCategories && policyCategories[transaction.category] && !policyCategories[transaction.category].enabled) {
IOU.resetMoneyRequestCategory_temporaryForRefactor(transactionID);
}
}, [policyCategories, transaction.category, transactionID]);
Expand Down

0 comments on commit c3dcde4

Please sign in to comment.