diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js index 2c046bfc2a24..f2d5eb878fcd 100644 --- a/src/libs/actions/IOU.js +++ b/src/libs/actions/IOU.js @@ -472,7 +472,10 @@ function getMoneyRequestInformation( billable, ); - const optimisticPolicyRecentlyUsedCategories = Policy.buildOptimisticPolicyRecentlyUsedCategories(iouReport.policyID, category); + let optimisticPolicyRecentlyUsedCategories = []; + if (category) { + optimisticPolicyRecentlyUsedCategories = Policy.buildOptimisticPolicyRecentlyUsedCategories(iouReport.policyID, category); + } const optimisticPolicyRecentlyUsedTags = {}; const policyTags = allPolicyTags[`${ONYXKEYS.COLLECTION.POLICY_TAGS}${iouReport.policyID}`];