Skip to content

Commit

Permalink
Merge pull request #36858 from situchan/fix/crash-request-confirmation
Browse files Browse the repository at this point in the history
fix crash on money request confirmation page

(cherry picked from commit 4dc82e5)
  • Loading branch information
cristipaval authored and OSBotify committed Feb 20, 2024
1 parent 17eca6b commit ce6ceb1
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 ce6ceb1

Please sign in to comment.