From ab06fbee62b46aff727b1a29805736998e5ad6ad Mon Sep 17 00:00:00 2001 From: Lizzi Lindboe Date: Wed, 3 Jan 2024 11:36:29 -0800 Subject: [PATCH] Use policy arg for fetching paid policy info --- src/libs/actions/IOU.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js index 78429cfcc724..dc24f5b7b4a8 100644 --- a/src/libs/actions/IOU.js +++ b/src/libs/actions/IOU.js @@ -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);