Skip to content

Commit

Permalink
Use policy arg for fetching paid policy info
Browse files Browse the repository at this point in the history
  • Loading branch information
lindboe committed Jan 3, 2024
1 parent 34c080e commit ab06fbe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/actions/IOU.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,8 +685,7 @@ function getMoneyRequestInformation(
let needsToBeManuallySubmitted = false;
let isFromPaidPolicy = false;
if (isPolicyExpenseChat) {
const fetchedPolicy = ReportUtils.getPolicy(chatReport.policyID);
isFromPaidPolicy = PolicyUtils.isPaidGroupPolicy(fetchedPolicy);
isFromPaidPolicy = PolicyUtils.isPaidGroupPolicy(policy);

// If the scheduled submit is turned off on the policy, user needs to manually submit the report which is indicated by GBR in LHN
needsToBeManuallySubmitted = isFromPaidPolicy && !(policy.isHarvestingEnabled || false);
Expand Down

0 comments on commit ab06fbe

Please sign in to comment.