Skip to content

Commit

Permalink
Fix test for real now
Browse files Browse the repository at this point in the history
  • Loading branch information
youssef-lr committed Feb 29, 2024
1 parent f0a99eb commit 933e0d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ function canAddTransactionsToMoneyRequest(report: OnyxEntry<Report>): boolean {
return false;
}

if (isProcessingReport(report) && !PolicyUtils.isInstantSubmitEnabled(getPolicy(report?.policyID))) {
if (isGroupPolicy(report) && isProcessingReport(report) && !PolicyUtils.isInstantSubmitEnabled(getPolicy(report?.policyID))) {
return false;
}

Expand Down Expand Up @@ -4219,7 +4219,7 @@ function canRequestMoney(report: OnyxEntry<Report>, policy: OnyxEntry<Policy>, o
// which is tied to their workspace chat.
if (isMoneyRequestReport(report)) {
const canAddTransactions = canAddTransactionsToMoneyRequest(report);
return isPaidGroupPolicy(report) ? isOwnPolicyExpenseChat && canAddTransactions : canAddTransactions;
return isGroupPolicy(report) ? isOwnPolicyExpenseChat && canAddTransactions : canAddTransactions;
}

// In case of policy expense chat, users can only request money from their own policy expense chat
Expand Down

0 comments on commit 933e0d8

Please sign in to comment.